Lines Matching refs:package

62 PACKAGE_CATEGORIES=	# List of package categories parsed from INDEX
122 # f_package_select $package ...
124 # Add $package to the list of tracked/selected packages. If $package is already
130 local package pkgsel
132 package="$1"
133 shift 1 # package
135 [ "$package" = "$pkgsel" ] && return $SUCCESS
137 SELECTED_PACKAGES="$SELECTED_PACKAGES $package"
138 f_dprintf "Added %s to selection list" "$package"
143 # f_package_deselect $package ...
145 # Remove $package from the list of tracked/selected packages. If $package is
151 local package pkgsel
154 package="$1"
155 shift 1 # package
157 [ "$pkgsel" = "$package" ] && continue
161 f_dprintf "Removed %s from selection list" "$package"
168 # entries and marks each entry as an installed/selected package.
172 local package varpkg
173 for package in $( pkg query "%n-%v" ); do
174 f_str2varname $package varpkg
176 f_package_select $package
190 # $_mark_$varpkg -- where $varpkg is the product of `f_str2varname $package
191 # varpkg'. A mark can be "X" for an installed package, `I' for a package that
192 # is marked for installation, "R" for a package that is marked for re-install,
193 # and "U" for a package that is marked for uninstallation. If a package mark is
194 # NULL or a single space (e.g., " "), the package is considered to be NOT
232 # Update package dependencies by first unmarking all dependencies and then
243 f_dprintf "Unselecting package run-dependencies..."
259 f_dprintf "Re-selecting package run-dependencies..."
283 # Dislay the menu of package categories, complete with package counts for each
299 # updates package mark variables and SELECTED_PACKAGES
456 package = $1
459 varpkg = package
464 package, mark, desc
527 # f_package_menu_deselect $package
529 # Display a menu, asking the user what they would like to do with $package
530 # with regard to "deselecting" an already installed package. Choices include
531 # uninstall, re-install, or cancel (leave $package marked as installed).
537 local package="$1"
546 f_sprintf prompt "$msg_what_would_you_like_to_do_with" "$package"
590 local package varpkg mark
591 for package in $SELECTED_PACKAGES; do
593 f_str2varname "$package" varpkg
597 '$mark' '$package'
633 for package in $SELECTED_PACKAGES; do
635 f_str2varname "$package" varpkg
638 f_dprintf "$funcname: Installing %s package" "$package"
639 f_package_add "$package"
641 for package in $SELECTED_PACKAGES; do
643 f_str2varname "$package" varpkg
646 f_dprintf "$funcname: Reinstalling %s package" "$package"
647 f_package_reinstall "$package"
649 for package in $SELECTED_PACKAGES; do
651 f_str2varname "$package" varpkg
654 f_dprintf "$funcname: Uninstalling %s package" "$package"
655 f_package_delete "$package" || continue
656 f_package_deselect "$package"
665 # package categories is loaded/displayed. When the user selects a category,
686 # Display the list of package categories
705 # Anything else is a package category
712 local page package varpkg mark menu_choice
780 continue ;; # Do not treat as a package
785 # Treat any other selection as a package
786 package="${menu_choice# }" # Trim leading space
787 f_str2varname $package varpkg
794 f_package_deselect $package
798 f_package_select $package
801 f_package_menu_deselect $package || continue
805 f_package_deselect "$package"
809 f_package_select "$package"
813 f_package_select "$package"
829 # If $depended is present and non-NULL, the package is treated as a dependency
890 # short-circuit the package dependency checks if the package is already
891 # installed. This prevents wasted cycles, minor delays between package
922 # XXX package could be on a future disc volume
949 # Extract a package based on a namespec and media device. If $depended is
950 # present and non-NULL, the notification displayed while installing the package
1039 # Request the package be added via pkg-install(8)
1061 # Delete package by full $name (lacks archive suffix; e.g., `.tbz').
1119 # Return failure if the package is not already installed.
1141 # Maybe this package is marked for deletion too