aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-01-07 11:13:20 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-01-07 11:13:20 +0000
commitd3ba89108e6a9ba7127763dabe9307156c16fb0b (patch)
tree384b2c49fd4c328bca3eb24dfb79b1ca82402e7e
parentee48daedff7bea520b3381902a7fe0ba38dd1fa2 (diff)
downloadrpmdrake-d3ba89108e6a9ba7127763dabe9307156c16fb0b.tar
rpmdrake-d3ba89108e6a9ba7127763dabe9307156c16fb0b.tar.gz
rpmdrake-d3ba89108e6a9ba7127763dabe9307156c16fb0b.tar.bz2
rpmdrake-d3ba89108e6a9ba7127763dabe9307156c16fb0b.tar.xz
rpmdrake-d3ba89108e6a9ba7127763dabe9307156c16fb0b.zip
Add a --no-media-update option to rpmdrake to avoid updating media
at startup in update mode
-rwxr-xr-xrpmdrake3
1 files changed, 2 insertions, 1 deletions
diff --git a/rpmdrake b/rpmdrake
index cc8cf469..0c8491cc 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -34,6 +34,7 @@ BEGIN { #- we want to run this code before the Gtk->init of the use-my_gtk
--media=medium1,.. limit to given media
--pkg-sel=pkg1,.. preselect these packages
--pkg-nosel=pkg1,.. show only these packages
+ --no-media-update don't update media at startup
), $basename->($0);
exit 0;
};
@@ -1184,7 +1185,7 @@ sub get_installable_pkgs {
my %update_descr;
my @update_medias;
- if ($updates) {
+ if ($updates && !$options{'no-media-update'}) {
my $urpm = urpm->new;
$urpm->configure;
$urpm->{fatal} = sub {