xbps-src: rename listfiles target to list-files.

This commit is contained in:
Juan RP 2011-07-03 12:22:29 +02:00
parent ffc4402615
commit 21a096b6de
2 changed files with 8 additions and 5 deletions

View File

@ -181,7 +181,10 @@ list_pkg_files()
[ -z $pkg ] && msg_error "unexistent package, aborting.\n" [ -z $pkg ] && msg_error "unexistent package, aborting.\n"
ver=$($XBPS_PKGDB_CMD version $pkg) ver=$($XBPS_PKGDB_CMD version $pkg)
[ -z "$ver" ] && msg_error "$pkg is not installed.\n" if [ -z "$ver" ]; then
msg_warn "$pkg is not installed.\n"
return 1
fi
cat $XBPS_PKGMETADIR/$pkg/flist cat $XBPS_PKGMETADIR/$pkg/flist
} }

View File

@ -76,7 +76,7 @@ Targets:
install-destdir [pkgname] build + install into destdir. install-destdir [pkgname] build + install into destdir.
install [pkgname] install-destdir + stow. install [pkgname] install-destdir + stow.
list List installed packages in <masterdir>. list List installed packages in <masterdir>.
listfiles <pkgname> List installed files from <pkg>. list-files <pkgname> List installed files from <pkg>.
make-repoidx Build a package index for the local repository associated make-repoidx Build a package index for the local repository associated
with the master directory <masterdir> or <pkgdir>, with the master directory <masterdir> or <pkgdir>,
or updates it. or updates it.
@ -380,12 +380,12 @@ install|install-destdir)
install_pkg $pkgname install_pkg $pkgname
fi fi
;; ;;
list|listfiles) list|list-files)
if [ "$target" = "list" ]; then if [ "$target" = "list" ]; then
$XBPS_BIN_CMD list $XBPS_BIN_CMD list
exit $? else
list_pkg_files $2
fi fi
list_pkg_files $2
;; ;;
make-repoidx) make-repoidx)
if [ -n "${_PACKAGEDIR}" ]; then if [ -n "${_PACKAGEDIR}" ]; then