summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-08-19 14:30:38 +0000
committerFrancois Pons <fpons@mandriva.com>2003-08-19 14:30:38 +0000
commit1326987271717ae1cea4dfe005ff1b487013d68d (patch)
tree427f87f571051d92dcaddb6870d4a871840b2e36 /urpm.pm
parent25a91970d6ad4727f973d2a5bbd8fd0a5adb5e44 (diff)
downloadurpmi-1326987271717ae1cea4dfe005ff1b487013d68d.tar
urpmi-1326987271717ae1cea4dfe005ff1b487013d68d.tar.gz
urpmi-1326987271717ae1cea4dfe005ff1b487013d68d.tar.bz2
urpmi-1326987271717ae1cea4dfe005ff1b487013d68d.tar.xz
urpmi-1326987271717ae1cea4dfe005ff1b487013d68d.zip
added nopubkey option to disable pubkey management during update_media (will not
work for rpm < 4.2 in %post of urpmi)
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/urpm.pm b/urpm.pm
index ea9737b9..9fb81bd7 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -1102,7 +1102,7 @@ sub update_media {
$options{nolock} or $urpm->exlock_urpmi_db;
#- get gpg-pubkey signature.
- $urpm->{keys} or $urpm->parse_pubkeys(root => $urpm->{root});
+ $options{nopubkey} or $urpm->{keys} or $urpm->parse_pubkeys(root => $urpm->{root});
#- examine each medium to see if one of them need to be updated.
#- if this is the case and if not forced, try to use a pre-calculated
@@ -1435,7 +1435,7 @@ this could happen if you mounted manually the directory when creating the medium
}
#- examine if a local pubkey file is available.
- if ($medium->{hdlist} ne 'pubkey' && !$medium->{'key-ids'}) {
+ if (!$options{nopubkey} && $medium->{hdlist} ne 'pubkey' && !$medium->{'key-ids'}) {
my $local_pubkey = $medium->{with_hdlist} =~ /hdlist(.*)\.cz2?$/ ? "pubkey$1" : 'pubkey';
my $path_pubkey = reduce_pathname("$with_hdlist_dir/../$local_pubkey");
-s $path_pubkey or $path_pubkey = reduce_pathname("$with_hdlist_dir/../pubkey");
@@ -1670,7 +1670,7 @@ this could happen if you mounted manually the directory when creating the medium
}
#- retrieve pubkey file.
- if ($medium->{hdlist} ne 'pubkey' && !$medium->{'key-ids'}) {
+ if (!$options{nopubkey} && $medium->{hdlist} ne 'pubkey' && !$medium->{'key-ids'}) {
my $local_pubkey = $medium->{with_hdlist} =~ /hdlist(.*)\.cz2?$/ ? "pubkey$1" : 'pubkey';
foreach (reduce_pathname("$medium->{url}/$medium->{with_hdlist}/../$local_pubkey"),
reduce_pathname("$medium->{url}/$medium->{with_hdlist}/../pubkey"),