summaryrefslogtreecommitdiffstats
path: root/web/html/pkgsubmit.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-10-10 12:27:13 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2014-10-10 12:29:18 +0200
commita1bee1a21e3ac4ee475332bfda63fa502ba51694 (patch)
treed4ec48c8e17fc20232e4a78a2c3794377db9977b /web/html/pkgsubmit.php
parent725a4778dbe51873e1ab1219339397ad50d78e61 (diff)
downloadaur-a1bee1a21e3ac4ee475332bfda63fa502ba51694.tar.gz
aur-a1bee1a21e3ac4ee475332bfda63fa502ba51694.tar.xz
Add support for architecture-specific sources
As a follow-up to 4d7da95 (Add support for architecture-specific fields, 2014-08-10), handle architecture-specific source fields as well. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html/pkgsubmit.php')
-rw-r--r--web/html/pkgsubmit.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php
index e1963de7..8cecd673 100644
--- a/web/html/pkgsubmit.php
+++ b/web/html/pkgsubmit.php
@@ -176,7 +176,6 @@ if ($uid):
break;
case 'license':
case 'groups':
- case 'source':
$section_info[$key][] = $value;
break;
case 'depends':
@@ -186,6 +185,7 @@ if ($uid):
case 'conflicts':
case 'provides':
case 'replaces':
+ case 'source':
$section_info[$key][$arch][] = $value;
break;
}
@@ -382,8 +382,10 @@ if ($uid):
}
}
- foreach ($pi['source'] as $src) {
- pkg_add_src($pkgid, $src);
+ foreach ($pi['source'] as $srcarch => $srcgrp) {
+ foreach ($srcgrp as $src) {
+ pkg_add_src($pkgid, $src, $srcarch);
+ }
}
}