Always add to build db as we go
This commit is contained in:
1 file changed
+2
-8
+2
-8
@@ -130,10 +130,8 @@ build_package() {
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# If this package is a dependency of another package being built,
|
# Update the build database so it's available via pacman
|
||||||
# update the build database so it's available via pacman
|
echo " Updating omarchy-build database..."
|
||||||
if [[ "${INSTALL_PACKAGES[$pkg]}" == "1" ]]; then
|
|
||||||
echo " Updating omarchy-build database (needed as dependency)..."
|
|
||||||
cd "$BUILD_OUTPUT_DIR"
|
cd "$BUILD_OUTPUT_DIR"
|
||||||
|
|
||||||
# Find the package file we just built (not .sig)
|
# Find the package file we just built (not .sig)
|
||||||
@@ -146,9 +144,6 @@ build_package() {
|
|||||||
repo-add omarchy-build.db.tar.zst "$new_pkg" 2>&1 | grep -E "==>|error" || true
|
repo-add omarchy-build.db.tar.zst "$new_pkg" 2>&1 | grep -E "==>|error" || true
|
||||||
ln -sf omarchy-build.db.tar.zst omarchy-build.db
|
ln -sf omarchy-build.db.tar.zst omarchy-build.db
|
||||||
|
|
||||||
# Sync filesystem to ensure package file is fully written
|
|
||||||
sync
|
|
||||||
|
|
||||||
# Refresh pacman databases so it sees the new package
|
# Refresh pacman databases so it sees the new package
|
||||||
echo " Refreshing pacman database..."
|
echo " Refreshing pacman database..."
|
||||||
sudo pacman -Sy 2>&1 | grep -E "omarchy-build|error" || true
|
sudo pacman -Sy 2>&1 | grep -E "omarchy-build|error" || true
|
||||||
@@ -162,7 +157,6 @@ build_package() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
cd /src/$pkg
|
cd /src/$pkg
|
||||||
fi
|
|
||||||
|
|
||||||
echo " ✓ Successfully built $pkg"
|
echo " ✓ Successfully built $pkg"
|
||||||
SUCCESSFUL_PACKAGES="$SUCCESSFUL_PACKAGES $pkg"
|
SUCCESSFUL_PACKAGES="$SUCCESSFUL_PACKAGES $pkg"
|
||||||
|
|||||||
Reference in new issue
Block a user