diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-01 16:31:57 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-01 16:31:57 +0200 |
commit | 021e89d36ee73ded2cdd68d401f1ab2ca3ae7762 (patch) | |
tree | 3908e80020f26050871bb970d98fe541437ec130 /bin | |
parent | 0119329e410e24f901cc26745b585f74febf4bc5 (diff) |
bin/pkg: Also show numeric priority
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pkg | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -208,8 +208,11 @@ pkg_info () { [ -z "$1" ] && die "Not enough arguments\n" info "Package: " echo "$1" - info "Priority: " - real_priority $(cat priority 2> /dev/null || echo 0) + if ([ -r priority ]) { + prio=$(cat priority) + info "Priority: " + echo "$prio ($(real_priority $prio))" + } LOG=$(hg log) info "Version: " echo $LOG | grep -m1 'changeset:' | grep -E -o '[0-9]{1,}:[0-9a-f]*' |