summaryrefslogtreecommitdiffstats
path: root/urpmf
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-07-31 16:34:25 +0000
committerFrancois Pons <fpons@mandriva.com>2003-07-31 16:34:25 +0000
commitef3761015754803621094dfa6e6d833f0fe7effa (patch)
tree0d0de9bf4fdb3f8377b70227b32c1b5cae8c3629 /urpmf
parentb7d5115540aef9f94c25c0016546af5f48a8903a (diff)
downloadurpmi-ef3761015754803621094dfa6e6d833f0fe7effa.tar
urpmi-ef3761015754803621094dfa6e6d833f0fe7effa.tar.gz
urpmi-ef3761015754803621094dfa6e6d833f0fe7effa.tar.bz2
urpmi-ef3761015754803621094dfa6e6d833f0fe7effa.tar.xz
urpmi-ef3761015754803621094dfa6e6d833f0fe7effa.zip
added shared lock (same as urpmi or urpmq).
Diffstat (limited to 'urpmf')
-rwxr-xr-xurpmf2
1 files changed, 2 insertions, 0 deletions
diff --git a/urpmf b/urpmf
index b3388f36..1b719dfa 100755
--- a/urpmf
+++ b/urpmf
@@ -152,6 +152,7 @@ if ($env) {
$urpm->{statedir} = $env;
}
+$urpm->shlock_urpmi_db;
$urpm->configure(nocheck_access => 1, noskipping => 1,
media => $media,
excludemedia => $excludemedia,
@@ -162,5 +163,6 @@ $urpm->configure(nocheck_access => 1, noskipping => 1,
hdlist => ($params{summary} || $params{description} || $params{sourcerpm} ||
$params{packager} || $params{buildhost} || $params{url} || $params{files}),
);
+$urpm->unlock_urpmi_db;
#- that'all! all has been done by callback above.