@@ -39,21 +39,7 @@ build_package_in_container() {
3939# List of packages to build
4040packages_to_build=()
4141
42- # 1. Collect local packages
43- echo " Collecting local packages..."
44- for d in packages/* /; do
45- if [ " $d " == " repo/" ]; then continue ; fi
46- dirname=${d%/ }
47- if [[ $dirname == .* ]]; then continue ; fi
48- # Remove packages/ prefix to get the package name
49- dirname=${dirname# packages/ }
50-
51- if [ -f " packages/$dirname /PKGBUILD" ]; then
52- packages_to_build+=(" packages/$dirname " )
53- fi
54- done
55-
56- # 2. Collect AUR packages
42+ # 1. Collect AUR packages first
5743echo " Collecting AUR packages..."
5844if [ -f aurpackages ]; then
5945 mkdir -p aur_sources
@@ -78,6 +64,20 @@ if [ -f aurpackages ]; then
7864 done < aurpackages
7965fi
8066
67+ # 2. Collect local packages second
68+ echo " Collecting local packages..."
69+ for d in packages/* /; do
70+ if [ " $d " == " repo/" ]; then continue ; fi
71+ dirname=${d%/ }
72+ if [[ $dirname == .* ]]; then continue ; fi
73+ # Remove packages/ prefix to get the package name
74+ dirname=${dirname# packages/ }
75+
76+ if [ -f " packages/$dirname /PKGBUILD" ]; then
77+ packages_to_build+=(" packages/$dirname " )
78+ fi
79+ done
80+
8181# 3. Build loop (Multi-pass)
8282echo " Starting build process for ${# packages_to_build[@]} packages..."
8383
0 commit comments