summaryrefslogtreecommitdiffstats
path: root/urpm/media.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm/media.pm')
-rw-r--r--urpm/media.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/urpm/media.pm b/urpm/media.pm
index 15614ea3..a42d15ca 100644
--- a/urpm/media.pm
+++ b/urpm/media.pm
@@ -761,6 +761,13 @@ sub add_distrib_media {
foreach my $media ($distribconf->listmedia) {
my $media_name = $distribconf->getvalue($media, 'name') || '';
+ if (my $media_arch = $distribconf->getvalue($media, 'arch')) {
+ if (!URPM::archscore($media_arch)) {
+ $urpm->{log}(N("skiping non compatible media `%s' (for %s)\n"),
+ $media, $media_arch);
+ next;
+ }
+ }
my $add_by_default = !$distribconf->getvalue($media, 'noauto');
if ($options{ask_media}) {
$options{ask_media}->($media_name, $add_by_default) or next;