Just run xbps-pkgdb list and remove list_pkgs().
--HG-- extra : convert_revision : 8aec0a58b00abe86418ce0d906db03d70f8d62ff
This commit is contained in:
parent
f2846165f0
commit
000b040397
15
xbps.sh
15
xbps.sh
|
@ -1219,19 +1219,6 @@ install_pkg()
|
||||||
[ -z "$install_destdir_target" ] && stow_pkg $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.
|
# Lists files installed by a package.
|
||||||
#
|
#
|
||||||
|
@ -1465,7 +1452,7 @@ install)
|
||||||
install_pkg $2
|
install_pkg $2
|
||||||
;;
|
;;
|
||||||
list)
|
list)
|
||||||
list_pkgs
|
$XBPS_PKGDB_CMD list
|
||||||
;;
|
;;
|
||||||
listfiles)
|
listfiles)
|
||||||
[ -z "$2" ] && msg_error "missing package after target."
|
[ -z "$2" ] && msg_error "missing package after target."
|
||||||
|
|
Loading…
Reference in New Issue