summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-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]*'