diff options
Diffstat (limited to 'gurpmi2')
-rwxr-xr-x | gurpmi2 | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -121,9 +121,8 @@ sub configure_urpm() { $w->run; $w->destroy; }; - $rpm_lock = urpm::sys::lock_rpm_db($urpm, 'exclusive'); - $urpmi_lock = urpm::sys::lock_urpmi_db($urpm); - urpm::media::configure($urpm, + $rpm_lock = urpm::lock::rpm_db($urpm, 'exclusive'); + $urpmi_lock = urpm::media::configure($urpm, root => $gurpmi::options{root}, media => $gurpmi::options{media}, searchmedia => $gurpmi::options{searchmedia}, @@ -339,7 +338,7 @@ sub do_install_3 () { } else { $progress_label->set_label(N("Installation finished")); } - urpm::sys::unlock($urpmi_lock); - urpm::sys::unlock($rpm_lock); + $urpmi_lock->unlock; + $rpm_lock->unlock; urpm::removable::try_umounting_removables($urpm); } |