summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-06-17 12:44:51 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-06-17 12:44:51 +0200
commit44b8a3951da23b55321d00c4a8ff1dd001b89786 (patch)
treef05bce9865f19d615310a21d3ec653a61a55e7a0 /bin
parent6e4e8e7edf599ca2e25a81df4f3a0138d703fa36 (diff)
pkg: pkg_info: No need to pre-fetch the versions
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pkg6
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/pkg b/bin/pkg
index 5779755..f8cbae1 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -771,8 +771,6 @@ function pkg_info {
check_valid $1
typeset name=$1
- typeset local_version=$(list_version_local $1)
- typeset remote_version=$(list_version_remote $1)
typeset repo_type=$(list_type $1)
typeset priority priority_name
typeset hooks makefile discription state
@@ -811,8 +809,8 @@ function pkg_info {
show_info 'Package' $name
show_info 'State' $state
[[ -n $priority ]] && show_info 'Priority' "$priority ($priority_name)"
- show_info 'Local Version' $local_version
- show_info 'Remote Version' $remote_version
+ show_info 'Local Version' $(list_version_local $1)
+ show_info 'Remote Version' $(list_version_remote $1)
show_info 'Repository Type' $repo_type
show_info 'Repository Size' $size
show_info 'Hooks' $hooks