Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/build_stage1_package.sh
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-01-30 14:39:20 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2018-01-30 14:39:20 +0100
commit3ad78d32a2bdfa3d95ed2a369b7528551653b254 (patch)
tree4dc73479234671e3c0ed66b0c2bc817cf4ed069e /build_stage1_package.sh
parenteeefbe0d6b4f602b6e70d093b287aed8b5e9501f (diff)
make sure to clean the package directory and remove stale packages when building
Diffstat (limited to 'build_stage1_package.sh')
-rwxr-xr-xbuild_stage1_package.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/build_stage1_package.sh b/build_stage1_package.sh
index bd2de31..2fe6bc1 100755
--- a/build_stage1_package.sh
+++ b/build_stage1_package.sh
@@ -21,6 +21,7 @@ if test $(pacman --config "$STAGE1_CHROOT/etc/pacman.conf" -r "$STAGE1_CHROOT" -
cd $STAGE1_BUILD || exit 1
rm -rf "$PACKAGE"
+ rm -f $STAGE1_PACKAGES/$PACKAGE-*pkg.tar.xz
PACKAGE_CONF="$SCRIPT_DIR/packages-$TARGET_CPU-stage1/$PACKAGE"
if test $(grep -c NEEDS_YAOURT $PACKAGE_CONF) = 1; then