summaryrefslogtreecommitdiffstats
path: root/gurpmi2
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 /gurpmi2
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 'gurpmi2')
-rwxr-xr-xgurpmi28
1 files changed, 4 insertions, 4 deletions
diff --git a/gurpmi2 b/gurpmi2
index b7840ea8..90be7706 100755
--- a/gurpmi2
+++ b/gurpmi2
@@ -114,8 +114,8 @@ sub configure_urpm() {
$w->run;
$w->destroy;
};
- $urpm->lock_rpm_db('exclusive');
- $urpm->lock_urpmi_db;
+ urpm::sys::lock_rpm_db($urpm, 'exclusive');
+ urpm::sys::lock_urpmi_db($urpm);
$urpm->configure(
root => $gurpmi::options{root},
media => $gurpmi::options{media},
@@ -332,7 +332,7 @@ sub do_install_3 () {
} else {
$progress_label->set_label(N("Installation finished"));
}
- $urpm->unlock_urpmi_db;
- $urpm->unlock_rpm_db;
+ urpm::sys::unlock_urpmi_db($urpm);
+ urpm::sys::unlock_rpm_db($urpm);
$urpm->try_umounting_removables;
}