aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Youri
diff options
context:
space:
mode:
authorOlivier Blin <dev@blino.org>2015-11-02 01:44:24 +0100
committerOlivier Blin <dev@blino.org>2015-11-02 01:44:24 +0100
commit38425bac88cd65c84af69400d256eac01ea3b9af (patch)
tree5833a6c912d6e044153dd5f7bbe3b0013dd4b185 /lib/Youri
parentaedb2e099782dd020ba61203699d80bb6248fc29 (diff)
downloadmga-youri-submit-38425bac88cd65c84af69400d256eac01ea3b9af.tar
mga-youri-submit-38425bac88cd65c84af69400d256eac01ea3b9af.tar.gz
mga-youri-submit-38425bac88cd65c84af69400d256eac01ea3b9af.tar.bz2
mga-youri-submit-38425bac88cd65c84af69400d256eac01ea3b9af.tar.xz
mga-youri-submit-38425bac88cd65c84af69400d256eac01ea3b9af.zip
Link noarch files only for architectures of the current target
Previously, it was trying to link noarch files for all arches listed in the config file, independently of the target. This commit uses the newly introduced get_target_arches() method from Youri::Repository. Also adapt the commented line in Deps.pm
Diffstat (limited to 'lib/Youri')
-rw-r--r--lib/Youri/Submit/Action/Link.pm2
-rw-r--r--lib/Youri/Submit/Check/Deps.pm2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Youri/Submit/Action/Link.pm b/lib/Youri/Submit/Action/Link.pm
index 7e69683..ce722f1 100644
--- a/lib/Youri/Submit/Action/Link.pm
+++ b/lib/Youri/Submit/Action/Link.pm
@@ -43,7 +43,7 @@ sub run {
$file =~ s/^\d{14}\.\w*\.\w+\.\d+_//;
$file =~ s/^\@\d+://;
- foreach my $arch ($repository->get_extra_arches()) {
+ foreach my $arch ($repository->get_target_arches($target)) {
# compute installation target, forcing arch
my $other_dir = $repository->get_install_dir(
$package,
diff --git a/lib/Youri/Submit/Check/Deps.pm b/lib/Youri/Submit/Check/Deps.pm
index f8d5d89..129ee8c 100644
--- a/lib/Youri/Submit/Check/Deps.pm
+++ b/lib/Youri/Submit/Check/Deps.pm
@@ -72,7 +72,7 @@ sub run {
my $arch = 'x86_64';
my @exclusivearchs = $package->get_tag("exclusivearchs");
return if @exclusivearchs && ! (grep {$_ eq $arch} @exclusivearchs);
-# foreach my $arch ($repository->get_extra_arches()) {
+# foreach my $arch ($repository->get_target_arches($target)) {
my $media = new Youri::Media::URPM(name => "core.".$arch,
type => "binary",
synthesis => "$path/$arch/media/$section/media_info/synthesis.hdlist.cz");