summaryrefslogtreecommitdiffstats
path: root/gurpmi2
diff options
context:
space:
mode:
Diffstat (limited to 'gurpmi2')
-rwxr-xr-xgurpmi28
1 files changed, 6 insertions, 2 deletions
diff --git a/gurpmi2 b/gurpmi2
index 48fe89ca..f3f9c235 100755
--- a/gurpmi2
+++ b/gurpmi2
@@ -111,8 +111,12 @@ my ($rpm_lock, $urpmi_lock);
#- Creates and configure an urpm object for this application to use.
sub configure_urpm() {
- my $urpm = urpm->new;
- $urpm->get_global_options;
+ my $urpm;
+ {
+ local @ARGV = @ARGV;
+ $urpm = urpm->new_parse_cmdline;
+ }
+
$urpm->{fatal} = sub {
Gtk2::MessageDialog->new($mainw, [qw(modal destroy-with-parent)], 'error', 'ok', Locale::gettext::iconv($_[1], undef, 'UTF-8'))->run;
quit();