xbps-src: change order of how subpackages are processed.

10 Non development packages are processed first lexically.
20 Development packages are processed after 10.

This resolves the issue of 32bit pkg creation with development pkgs
that depend on other non-development subpkgs, and result in wrong
dependencies being propagated to the 32bit development pkgs.
This commit is contained in:
Juan RP 2014-08-25 17:43:08 +02:00
parent daad2f509a
commit 5290c2a839

View file

@ -195,8 +195,13 @@ get_subpkgs() {
while [ $# -gt 0 ]; do
list+=" ${3%_package}"; shift 3
done
# first all non development pkgs ...
for f in ${list}; do
echo "$f"
[[ $f =~ '-devel' ]] || echo "$f"
done
# ... and then only development pkgs
for f in ${list}; do
[[ $f =~ '-devel' ]] && echo "$f"
done
}