Fix show & info
This commit is contained in:
parent
59485e7970
commit
ea5e2042da
3 changed files with 4 additions and 3 deletions
|
|
@ -47,7 +47,7 @@ deps)
|
||||||
resolve_deps $* || exit $?
|
resolve_deps $* || exit $?
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
show)
|
info)
|
||||||
if [ -z "$2" ]
|
if [ -z "$2" ]
|
||||||
then
|
then
|
||||||
echo "No package specified" >&2
|
echo "No package specified" >&2
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,9 @@ Operations:
|
||||||
install <pkg...> Install packages
|
install <pkg...> Install packages
|
||||||
remove <pkg...> Remove packages
|
remove <pkg...> Remove packages
|
||||||
fetch <pkg...> Fetch packages into current directory
|
fetch <pkg...> Fetch packages into current directory
|
||||||
show <pkg...> Show package files
|
|
||||||
deps <pkg...> Show dependencies of package
|
deps <pkg...> Show dependencies of package
|
||||||
|
show <pkg...> Show package files
|
||||||
|
info <pkg...> Show info of package
|
||||||
list List currently installed packages
|
list List currently installed packages
|
||||||
list-all List all packages in repository
|
list-all List all packages in repository
|
||||||
list-outdated List outdated packages
|
list-outdated List outdated packages
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ is_installed()
|
||||||
# $1 = file
|
# $1 = file
|
||||||
view_package_file() {
|
view_package_file() {
|
||||||
tree=$(tar -tJf "$1" 2>/dev/null) || exit $?
|
tree=$(tar -tJf "$1" 2>/dev/null) || exit $?
|
||||||
echo "$tree" | sed "s|^ROOT/|/|g ; /\/$/d ; s|^HOME/|$HOME/|g ; /^DEPS/d" 2>/dev/null
|
echo "$tree" | sed "s|^ROOT/|/|g ; /\/$/d ; s|^HOME/|$HOME/|g ; /^DEPS/d ; /^DESC/d" 2>/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
# $1 = package name
|
# $1 = package name
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue