summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2013-05-24 20:56:23 +0000
committerThierry Vignaud <tv@mageia.org>2013-05-24 20:56:23 +0000
commit4da170df8c4a910ba7ec60336e86870b16ae1e26 (patch)
treee1abcf3a6ffc3d6fd338db9a2385d51348dd9aaf /urpm
parent659ee1cacaccb851f1fb3029f1db3460da4d37eb (diff)
downloadurpmi-4da170df8c4a910ba7ec60336e86870b16ae1e26.tar
urpmi-4da170df8c4a910ba7ec60336e86870b16ae1e26.tar.gz
urpmi-4da170df8c4a910ba7ec60336e86870b16ae1e26.tar.bz2
urpmi-4da170df8c4a910ba7ec60336e86870b16ae1e26.tar.xz
urpmi-4da170df8c4a910ba7ec60336e86870b16ae1e26.zip
fix wrongly enabling backports/testing for tainted/nonfree (mga#10254)
(when such packages are already installed)
Diffstat (limited to 'urpm')
-rw-r--r--urpm/media.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/media.pm b/urpm/media.pm
index d917cb45..e3eafdbf 100644
--- a/urpm/media.pm
+++ b/urpm/media.pm
@@ -779,7 +779,7 @@ sub needed_extra_media {
sub is_media_to_add_by_default {
my ($urpm, $distribconf, $medium, $product_id, $nonfree, $tainted) = @_;
my $add_by_default = !$distribconf->getvalue($medium, 'noauto');
- my @media_types = split(':', $distribconf->getvalue($medium, 'media_type'));
+ my @media_types = split(':', $distribconf->getvalue($medium, 'media_types'));
if ($product_id->{product} eq 'Free') {
if (member('non-free', @media_types)) {
$urpm->{log}(N("ignoring non-free medium `%s'", $medium));