aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Rpmdrake/gui.pm1
-rwxr-xr-xRpmdrake/init.pm1
-rwxr-xr-xRpmdrake/pkg.pm1
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;