summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-06-01 16:31:57 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-06-01 16:31:57 +0200
commit021e89d36ee73ded2cdd68d401f1ab2ca3ae7762 (patch)
tree3908e80020f26050871bb970d98fe541437ec130 /bin/pkg
parent0119329e410e24f901cc26745b585f74febf4bc5 (diff)
bin/pkg: Also show numeric priority
Diffstat (limited to 'bin/pkg')
-rwxr-xr-xbin/pkg7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/pkg b/bin/pkg
index d1c8443..1ab2da2 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -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]*'