[Mageia-dev] [599] Only check deps for packages buildable on x86_64

Thierry Vignaud thierry.vignaud at gmail.com
Mon Feb 21 08:23:42 CET 2011


On 20 February 2011 21:50,  <root at mageia.org> wrote:
> Revision 599 Author pterjan Date 2011-02-20 21:50:18 +0100 (Sun, 20 Feb
> 2011)
>
> Log Message
>
> Only check deps for packages buildable on x86_64

Why not try the same logic and i586, then fail (which is fine
since for now we only care about those 2 arches)?

Index: lib/Youri/Submit/Check/Deps.pm
===================================================================
--- lib/Youri/Submit/Check/Deps.pm      (révision 600)
+++ lib/Youri/Submit/Check/Deps.pm      (copie de travail)
@@ -68,9 +68,9 @@
     # 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");
+    $arch = 'i586' if @exclusivearchs && ! (grep {$_ eq $arch}
@exclusivearchs);
     return if @exclusivearchs && ! (grep {$_ eq $arch} @exclusivearchs);
 #    foreach my $arch ($repository->get_extra_arches()) {
         my $media = new Youri::Media::URPM(name => "core.".$arch,


More information about the Mageia-dev mailing list