summaryrefslogtreecommitdiffstats
path: root/urpmq
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-07-31 16:34:10 +0000
committerFrancois Pons <fpons@mandriva.com>2003-07-31 16:34:10 +0000
commitb7d5115540aef9f94c25c0016546af5f48a8903a (patch)
tree1020a16ed9b4456d20a29dca4a5f1f86145b5137 /urpmq
parentd7e2a329df79189bd586358f2b0c6802d76f50aa (diff)
downloadurpmi-b7d5115540aef9f94c25c0016546af5f48a8903a.tar
urpmi-b7d5115540aef9f94c25c0016546af5f48a8903a.tar.gz
urpmi-b7d5115540aef9f94c25c0016546af5f48a8903a.tar.bz2
urpmi-b7d5115540aef9f94c25c0016546af5f48a8903a.tar.xz
urpmi-b7d5115540aef9f94c25c0016546af5f48a8903a.zip
added shared lock (same as urpmi or urpmf).
Diffstat (limited to 'urpmq')
-rwxr-xr-xurpmq2
1 files changed, 2 insertions, 0 deletions
diff --git a/urpmq b/urpmq
index 7e26c46b..ccb12672 100755
--- a/urpmq
+++ b/urpmq
@@ -172,6 +172,7 @@ if ($query->{env}) {
$urpm->{statedir} = $query->{env};
}
+$urpm->shlock_urpmi_db;
$urpm->configure(nocheck_access => 1,
noskipping => $query->{nodepslist}, noinstalling => $query->{nodepslist}, nodepslist => $query->{nodepslist},
media => $query->{media},
@@ -395,6 +396,7 @@ if ($query->{list_aliases}) {
exit 0;
}
}
+$urpm->unlock_urpmi_db;
#- print sub for query.
my $query_sub = sub {