diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-28 15:43:50 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-28 15:43:50 +0200 |
commit | 3070075f818b84516da92c28feec2774b705c110 (patch) | |
tree | cf144445ca2a5254d987297fbdf7f90d9eadd963 | |
parent | 501886cf7f9c0b3e8a2816c8a19bb0deebc84adc (diff) |
bin/pkg: pkg_info: Fixed repo size, added repo type
-rwxr-xr-x | bin/pkg | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -432,6 +432,7 @@ pkg_info () { } LOCAL_VERSION=$(lst_local_version $1) REMOTE_VERSION=$(lst_remote_version $1) + REPO_TYPE=$(lst_type $1) if ([ -r dependencies ]) { DEPENDENCIES=$(cat dependencies | tr "\n" " " | sed 's/ /, /g' | sed 's/, $//') } @@ -444,7 +445,7 @@ pkg_info () { if ([ -r Makefile ]) { MAKEFILE=1 } -# SIZE=$(du -sh .hg | grep -o '.*[KMG]') + SIZE=$(du -sh .$(lst_type $1) | grep -o '.*[KMG]') if ([ -r description ]) { DESCRIPTION=$(cat description) } @@ -459,10 +460,11 @@ pkg_info () { show_info "Priority" "$PRIORITY ($PRIORITY_NAME)" show_info "Local Version" "$LOCAL_VERSION" show_info "Remote Version" "$REMOTE_VERSION" + show_info "Repository Type" "$REPO_TYPE" + show_info "Repostiry Size" "$SIZE" show_info "Depends" "$DEPENDENCIES" show_info "Tags" "$TAGS" show_info "Hooks" "$HOOKS" - show_info "Repostiry Size" "$SIZE" show_info "Description" "$DESCRIPTION" } |