diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-08-10 16:45:19 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-08-10 16:45:19 +0000 |
commit | ebe0d5e6c035d1ea98a00abdebe51e8e978323fe (patch) | |
tree | b2c616280d27d3caa02415f0ad9bb985970cf84d /Rpmdrake | |
parent | ab4345a91872731a1521bd20f872f773672440ad (diff) | |
download | rpmdrake-ebe0d5e6c035d1ea98a00abdebe51e8e978323fe.tar rpmdrake-ebe0d5e6c035d1ea98a00abdebe51e8e978323fe.tar.gz rpmdrake-ebe0d5e6c035d1ea98a00abdebe51e8e978323fe.tar.bz2 rpmdrake-ebe0d5e6c035d1ea98a00abdebe51e8e978323fe.tar.xz rpmdrake-ebe0d5e6c035d1ea98a00abdebe51e8e978323fe.zip |
implement --auto option (#16093)
Diffstat (limited to 'Rpmdrake')
-rw-r--r-- | Rpmdrake/gui.pm | 1 | ||||
-rwxr-xr-x | Rpmdrake/init.pm | 1 | ||||
-rwxr-xr-x | Rpmdrake/pkg.pm | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm index c726ac0b..56014e14 100644 --- a/Rpmdrake/gui.pm +++ b/Rpmdrake/gui.pm @@ -434,6 +434,7 @@ sub is_locale_available { sub callback_choices { my (undef, undef, undef, $choices) = @_; + return $choices->[0] if $::options{'auto'}; foreach my $pkg (@$choices) { foreach ($pkg->requires_nosense) { /locales-/ or next; diff --git a/Rpmdrake/init.pm b/Rpmdrake/init.pm index e4d12a39..4db876e5 100755 --- a/Rpmdrake/init.pm +++ b/Rpmdrake/init.pm @@ -37,6 +37,7 @@ BEGIN { #- we want to run this code before the Gtk->init of the use-my_gtk my $basename = sub { local $_ = shift; s|/*\s*$||; s|.*/||; $_ }; any { /^--?h/ } @ARGV and do { printf join("\n", N("Usage: %s [OPTION]...", $basename->($0)), +N(" --auto assume default answers to questions"), N(" --changelog-first display changelog before filelist in the description window"), N(" --media=medium1,.. limit to given media"), N(" --merge-all-rpmnew propose to merge all .rpmnew/.rpmsave files found"), diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index 7d392751..cbf8b8e5 100755 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -231,6 +231,7 @@ sub open_urpmi_db() { $urpm->{options}{'allow-force'} = 1; $urpm->{options}{'allow-nodeps'} = 1; $urpm->{options}{'no-verify-rpm'} = $::options{'no-verify-rpm'}; + $urpm->{options}{auto} = $::options{'auto'}; $urpm->{fatal} = sub { $error_happened = 1; |