aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/pkg.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-26 11:24:14 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-26 11:24:14 +0000
commite9640595a49e64dc7cbdf424d783122ebb185ac7 (patch)
tree03b205aa3886dac04a24066a4a7f65b8835c0155 /Rpmdrake/pkg.pm
parent552d506a82618d8145ff8c284d60112349a4d3ba (diff)
downloadrpmdrake-e9640595a49e64dc7cbdf424d783122ebb185ac7.tar
rpmdrake-e9640595a49e64dc7cbdf424d783122ebb185ac7.tar.gz
rpmdrake-e9640595a49e64dc7cbdf424d783122ebb185ac7.tar.bz2
rpmdrake-e9640595a49e64dc7cbdf424d783122ebb185ac7.tar.xz
rpmdrake-e9640595a49e64dc7cbdf424d783122ebb185ac7.zip
(warn_about_media) simplify tests workflow (more readable)
Diffstat (limited to 'Rpmdrake/pkg.pm')
-rwxr-xr-xRpmdrake/pkg.pm6
1 files changed, 2 insertions, 4 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index 5e9ea033..ddb774a9 100755
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -176,8 +176,8 @@ my (@update_medias, $is_update_media_already_asked);
sub warn_about_media {
my ($urpm, $w, $opts) = @_;
my $update_name = 'update_source';
- if (member($::default_list_mode, qw(all_updates security bugfix normal))) {
- unless ($::options{'no-media-update'}) {
+ return if !member($::default_list_mode, qw(all_updates security bugfix normal));
+ return if $::options{'no-media-update'};
if (@update_medias > 0) {
if (!$opts->{skip_updating_mu} && !$is_update_media_already_asked) {
$is_update_media_already_asked = 1;
@@ -215,8 +215,6 @@ Then, restart %s.", $rpmdrake::myname_update)), myexit(-1);
);
@update_medias = { name => $update_name }; #- hack to simulate a medium for parsing of descriptions
}
- }
- }
}
our $probe_only_for_updates;