summaryrefslogtreecommitdiffstats
path: root/gurpmi2
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-12-12 11:33:39 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-12-12 11:33:39 +0000
commit4bda2339695fac3b3cc2b73cf3a1d23dcdb569a9 (patch)
tree93f358657fc9819981adb01686bc0b46d8a05242 /gurpmi2
parentdf23d1acfe8752f339f9f69d212cfa240f578796 (diff)
downloadurpmi-4bda2339695fac3b3cc2b73cf3a1d23dcdb569a9.tar
urpmi-4bda2339695fac3b3cc2b73cf3a1d23dcdb569a9.tar.gz
urpmi-4bda2339695fac3b3cc2b73cf3a1d23dcdb569a9.tar.bz2
urpmi-4bda2339695fac3b3cc2b73cf3a1d23dcdb569a9.tar.xz
urpmi-4bda2339695fac3b3cc2b73cf3a1d23dcdb569a9.zip
- urpmi:
o fix handling "post-clean: 0" in urpmi.cfg (#36082, regression introduced 2007-11-28) - library: o urpm::media::read_config() doesn't read urpmi.cfg global options anymore, use urpm->get_global_options or urpm->new_parse_cmdline
Diffstat (limited to 'gurpmi2')
-rwxr-xr-xgurpmi23
1 files changed, 2 insertions, 1 deletions
diff --git a/gurpmi2 b/gurpmi2
index 23fda4e9..d677170d 100755
--- a/gurpmi2
+++ b/gurpmi2
@@ -98,7 +98,8 @@ my ($rpm_lock, $urpmi_lock);
#- Creates and configure an urpm object for this application to use.
sub configure_urpm() {
- my $urpm = new urpm;
+ my $urpm = urpm->new;
+ $urpm->get_global_options;
$urpm->{fatal} = sub {
Gtk2::MessageDialog->new($mainw, [qw(modal destroy-with-parent)], 'error', 'ok', Locale::gettext::iconv($_[1], undef, 'UTF-8'))->run;
quit();