diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-02-26 04:29:47 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-02-26 04:29:47 +0000 |
commit | 84d534d2f18dae53e16ee8260afaac5e2d6a4a28 (patch) | |
tree | e0e530b9b5fd3f5f486c70d067124a0f166d83bb | |
parent | e6ff0d0f4b74a02d0398eaf8aeb49a11816d8139 (diff) | |
download | mgaonline-84d534d2f18dae53e16ee8260afaac5e2d6a4a28.tar mgaonline-84d534d2f18dae53e16ee8260afaac5e2d6a4a28.tar.gz mgaonline-84d534d2f18dae53e16ee8260afaac5e2d6a4a28.tar.bz2 mgaonline-84d534d2f18dae53e16ee8260afaac5e2d6a4a28.tar.xz mgaonline-84d534d2f18dae53e16ee8260afaac5e2d6a4a28.zip |
lazy load Rpmdrake::open_db so that urpm really is lazy loaded at
runtime when forking checker
-rwxr-xr-x | mdkapplet | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -39,7 +39,6 @@ use ugtk2 qw(:all); use lib qw(/usr/lib/libDrakX/drakfirsttime); use mdkonline; use Gtk2::Notify '-init', 'mdkapplet'; -use Rpmdrake::open_db; # POSIX unmasks the sigprocmask properly my $sigset = POSIX::SigSet->new; @@ -332,7 +331,8 @@ sub silentCheck() { require urpm; require urpm::lock; # so that get_inactive_backport_media() doesn't vivify $urpm->{media}: - my $urpm = fast_open_urpmi_db(); + require Rpmdrake::open_db; + my $urpm = Rpmdrake::open_db::fast_open_urpmi_db(); { local $urpm->{fatal} = sub { print "Fatal: @_\n"; |