summaryrefslogtreecommitdiffstats
path: root/urpmq
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-12-12 11:17:16 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-12-12 11:17:16 +0000
commitdf23d1acfe8752f339f9f69d212cfa240f578796 (patch)
tree104a01fc795255b3434f1adb915aa621f116d612 /urpmq
parent15c0d5414fbeb5b6e2fa65e30cbe99e33b00df20 (diff)
downloadurpmi-df23d1acfe8752f339f9f69d212cfa240f578796.tar
urpmi-df23d1acfe8752f339f9f69d212cfa240f578796.tar.gz
urpmi-df23d1acfe8752f339f9f69d212cfa240f578796.tar.bz2
urpmi-df23d1acfe8752f339f9f69d212cfa240f578796.tar.xz
urpmi-df23d1acfe8752f339f9f69d212cfa240f578796.zip
create urpm->new_parse_cmdline and use it
(it may be a little stricter for urpmi since we exit(1) on parse_cmdline error)
Diffstat (limited to 'urpmq')
-rwxr-xr-xurpmq3
1 files changed, 1 insertions, 2 deletions
diff --git a/urpmq b/urpmq
index 0c6fe0cf..5f9176b6 100755
--- a/urpmq
+++ b/urpmq
@@ -117,8 +117,7 @@ sub escape_shell ($) {
#- parse arguments list.
@ARGV or usage();
-my $urpm = new urpm;
-urpm::args::parse_cmdline(urpm => $urpm) or exit(1);
+my $urpm = urpm->new_parse_cmdline or exit(1);
#- we really don't want logs on stdout, and remove verbose if not asked.
$urpm->{info} = sub { print STDERR "$_[0]\n" };