Skip to content

Commit d8ae376

Browse files
committed
build AUR packages first
1 parent 9d2b595 commit d8ae376

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

build.sh

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,7 @@ build_package_in_container() {
3939
# List of packages to build
4040
packages_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
5743
echo "Collecting AUR packages..."
5844
if [ -f aurpackages ]; then
5945
mkdir -p aur_sources
@@ -78,6 +64,20 @@ if [ -f aurpackages ]; then
7864
done <aurpackages
7965
fi
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)
8282
echo "Starting build process for ${#packages_to_build[@]} packages..."
8383

0 commit comments

Comments
 (0)