diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-01-07 11:13:20 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-01-07 11:13:20 +0000 |
commit | d3ba89108e6a9ba7127763dabe9307156c16fb0b (patch) | |
tree | 384b2c49fd4c328bca3eb24dfb79b1ca82402e7e | |
parent | ee48daedff7bea520b3381902a7fe0ba38dd1fa2 (diff) | |
download | rpmdrake-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-x | rpmdrake | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 { |