From 021e89d36ee73ded2cdd68d401f1ab2ca3ae7762 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 1 Jun 2008 16:31:57 +0200 Subject: bin/pkg: Also show numeric priority --- bin/pkg | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'bin/pkg') 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]*' -- cgit v1.2.3