diff --git a/xbps.sh b/xbps.sh index 4bd95f98462..f7a848b186e 100755 --- a/xbps.sh +++ b/xbps.sh @@ -1219,19 +1219,6 @@ install_pkg() [ -z "$install_destdir_target" ] && stow_pkg $pkg } -# -# Lists all currently installed packages. -# -list_pkgs() -{ - if [ ! -r "$XBPS_PKGDB_FPATH" ]; then - msg_warn "No packages registered or missing register db file." - exit 0 - fi - - $XBPS_PKGDB_CMD list -} - # # Lists files installed by a package. # @@ -1465,7 +1452,7 @@ install) install_pkg $2 ;; list) - list_pkgs + $XBPS_PKGDB_CMD list ;; listfiles) [ -z "$2" ] && msg_error "missing package after target."