summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2008-01-12 14:02:33 +0000
committerMarc Espie <espie@cvs.openbsd.org>2008-01-12 14:02:33 +0000
commit62d0441f23f0cb758bb30f6d653e04f15ba20f0f (patch)
tree02f92b1f060abe02d53a4efbb70b722d07db1e70 /usr.sbin
parent5acf9de6f6865c7b4330e816fe6bf1dba7f1f82d (diff)
better ui for locking messages.
Instead of just saying we await the release, we say when it's done. (practically, a lot of package operation take `some time', it's good for the user to know whether the command is still waiting for an held lock, or actually doing some work)
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackageInfo.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageInfo.pm b/usr.sbin/pkg_add/OpenBSD/PackageInfo.pm
index 7d0e1712177..39bd8f5aa05 100644
--- a/usr.sbin/pkg_add/OpenBSD/PackageInfo.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PackageInfo.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: PackageInfo.pm,v 1.35 2007/06/16 09:29:37 espie Exp $
+# $OpenBSD: PackageInfo.pm,v 1.36 2008/01/12 14:02:32 espie Exp $
#
# Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org>
#
@@ -193,10 +193,11 @@ sub lock_db($;$)
if (flock($dlock, $mode | LOCK_NB)) {
return;
}
- print STDERR "Package database already locked... awaiting release\n"
+ print STDERR "Package database already locked... awaiting release... "
unless $quiet;
while (!flock($dlock, $mode)) {
}
+ print STDERR "done!\n" unless $quiet;
return;
}