aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Youri/Submit/Check
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2011-02-20 20:50:18 +0000
committerPascal Terjan <pterjan@mageia.org>2011-02-20 20:50:18 +0000
commite76d2721b2f2a42c4dd03f592ff3c0669e2cfdc7 (patch)
tree70cceb861f3beb2e9a8dc3b4bfa4fb9349a97369 /lib/Youri/Submit/Check
parent9be47f7f05f307e346fd549f219f1db21610d067 (diff)
downloadmga-youri-submit-e76d2721b2f2a42c4dd03f592ff3c0669e2cfdc7.tar
mga-youri-submit-e76d2721b2f2a42c4dd03f592ff3c0669e2cfdc7.tar.gz
mga-youri-submit-e76d2721b2f2a42c4dd03f592ff3c0669e2cfdc7.tar.bz2
mga-youri-submit-e76d2721b2f2a42c4dd03f592ff3c0669e2cfdc7.tar.xz
mga-youri-submit-e76d2721b2f2a42c4dd03f592ff3c0669e2cfdc7.zip
Only check deps for packages buildable on x86_64
Diffstat (limited to 'lib/Youri/Submit/Check')
-rw-r--r--lib/Youri/Submit/Check/Deps.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Youri/Submit/Check/Deps.pm b/lib/Youri/Submit/Check/Deps.pm
index 69cd1f9..3d5d235 100644
--- a/lib/Youri/Submit/Check/Deps.pm
+++ b/lib/Youri/Submit/Check/Deps.pm
@@ -68,7 +68,10 @@ sub run {
# FIXME we need dependencies on all archs except for ExclusiveArch
# Unfortunately some dependencies depend on the arch were the src.rpm was geenrated
# Currently src.rpm is generated on x86_64, so we need to check on that one
+ # If the package is not buildable on x86_64 we just don't test anything
my $arch = 'x86_64';
+ my @exclusivearchs = $package->get_tag("exclusivearchs");
+ return if @exclusivearchs && ! (grep {$_ eq $arch} @exclusivearchs);
# foreach my $arch ($repository->get_extra_arches()) {
my $media = new Youri::Media::URPM(name => "core.".$arch,
type => "binary",