From 000b0403976a2960549556b0ff896e42b437efa6 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 30 Oct 2008 07:18:21 +0100 Subject: [PATCH] Just run xbps-pkgdb list and remove list_pkgs(). --HG-- extra : convert_revision : 8aec0a58b00abe86418ce0d906db03d70f8d62ff --- xbps.sh | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) 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."