summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-08-31 16:44:21 +0000
committerThierry Vignaud <tv@mageia.org>2012-08-31 16:44:21 +0000
commit4bdcf8b0d24c233d51de06a446bb0702b17607f5 (patch)
tree1d3d8de207ec63eac32680fdd5d9dee308e6a6d4 /urpm
parent5c42e0563160f0e8c3ed9be44035557d5d5a5c5a (diff)
downloadurpmi-4bdcf8b0d24c233d51de06a446bb0702b17607f5.tar
urpmi-4bdcf8b0d24c233d51de06a446bb0702b17607f5.tar.gz
urpmi-4bdcf8b0d24c233d51de06a446bb0702b17607f5.tar.bz2
urpmi-4bdcf8b0d24c233d51de06a446bb0702b17607f5.tar.xz
urpmi-4bdcf8b0d24c233d51de06a446bb0702b17607f5.zip
urpmi.addmedia: add new --(no-)verify-rpm options
Diffstat (limited to 'urpm')
-rw-r--r--urpm/args.pm1
-rw-r--r--urpm/media.pm1
2 files changed, 2 insertions, 0 deletions
diff --git a/urpm/args.pm b/urpm/args.pm
index ce0b9150..df4a7b3c 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -351,6 +351,7 @@ my %options_spec = (
virtual => \$options{virtual},
nopubkey => \$options{nopubkey},
raw => \$options{raw},
+ 'verify-rpm!' => sub { ${options}{'verify-rpm'} = $_[1] },
},
'urpmi.recover' => {
diff --git a/urpm/media.pm b/urpm/media.pm
index fc3d77c6..c8d3dcda 100644
--- a/urpm/media.pm
+++ b/urpm/media.pm
@@ -836,6 +836,7 @@ sub add_medium {
my $medium = { name => $name,
url => $url,
modified => !$options{ignore},
+ (defined $options{'verify-rpm'} ? ('verify-rpm' => $options{'verify-rpm'}) : ()),
};
foreach (qw(downloader update ignore media_info_dir mirrorlist with-dir xml-info)) {
$medium->{$_} = $options{$_} if exists $options{$_};