From 39aa7227067729f1a630aebbbe2abc0644a47586 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Wed, 16 Feb 2005 14:37:44 +0000 Subject: Fix precedence nit with verify-rpm option set per media --- urpmi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/urpmi b/urpmi index 3142e97d..69e4cf57 100755 --- a/urpmi +++ b/urpmi @@ -469,7 +469,6 @@ if (@root_only) { message_input("$msg:\n$p\n$msg2" . N(" (Y/n) "), $force && $yesexpr, boolean => 1) =~ /[$noexpr]/ and exit 0; } -#- if not root, the list become invisible and no download will be possible. my ($local_sources, $list) = $urpm->get_source_packages($state->{selected}, clean_all => $clean, clean_other => !$noclean && $urpm->{options}{'pre-clean'}); @@ -536,7 +535,7 @@ foreach my $set (@{$state->{transaction} || []}) { ); my %transaction_sources_install = %{$urpm->extract_packages_to_install(\%transaction_sources) || {}}; - if (!$force && $urpm->{options}{'verify-rpm'} || grep { $_->{'verify-rpm'} } @{$urpm->{media}}) { + if (!$force && ($urpm->{options}{'verify-rpm'} || grep { $_->{'verify-rpm'} } @{$urpm->{media}})) { my @bad_signatures = $urpm->check_sources_signatures(\%transaction_sources_install, \%transaction_sources, translate => 1); if (@bad_signatures) { -- cgit v1.2.1