summaryrefslogtreecommitdiffstats
path: root/urpmf
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-21 15:19:52 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-21 15:19:52 +0000
commitf4c5b3fcf6bbca2fa0fcfcf7ab58819c79caeb50 (patch)
tree4fa7bebe110c865c2a023c999aaca50aa9b656c5 /urpmf
parent3036afacd2e78524060d15a759efce21b912c3e1 (diff)
downloadurpmi-f4c5b3fcf6bbca2fa0fcfcf7ab58819c79caeb50.tar
urpmi-f4c5b3fcf6bbca2fa0fcfcf7ab58819c79caeb50.tar.gz
urpmi-f4c5b3fcf6bbca2fa0fcfcf7ab58819c79caeb50.tar.bz2
urpmi-f4c5b3fcf6bbca2fa0fcfcf7ab58819c79caeb50.tar.xz
urpmi-f4c5b3fcf6bbca2fa0fcfcf7ab58819c79caeb50.zip
move lock functions to urpm::sys
Diffstat (limited to 'urpmf')
-rwxr-xr-xurpmf4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpmf b/urpmf
index 698a7d8c..8b42bc4c 100755
--- a/urpmf
+++ b/urpmf
@@ -193,7 +193,7 @@ if ($env) {
#- lock to avoid concurrent media updates,
#- but don't die if it doesn't work
local $urpm->{fatal} = sub { printf STDERR "%s\n", $_[1] };
- $urpm->lock_urpmi_db;
+ urpm::sys::lock_urpmi_db($urpm);
}
my $need_hdlist = grep { $usedtags{$_} } qw(
buildhost
@@ -218,7 +218,7 @@ $urpm->configure(
callback => $callback,
need_hdlist => $need_hdlist,
);
-$urpm->unlock_urpmi_db;
+urpm::sys::unlock_urpmi_db($urpm);
if ($need_hdlist) {
# @hdmedia is the list of all media searched that use hdlists