From d3ba89108e6a9ba7127763dabe9307156c16fb0b Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Fri, 7 Jan 2005 11:13:20 +0000 Subject: Add a --no-media-update option to rpmdrake to avoid updating media at startup in update mode --- rpmdrake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { -- cgit v1.2.1