Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/build_stage2_package.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build_stage2_package.sh')
-rwxr-xr-xbuild_stage2_package.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/build_stage2_package.sh b/build_stage2_package.sh
index b79210f..2b58eff 100755
--- a/build_stage2_package.sh
+++ b/build_stage2_package.sh
@@ -127,14 +127,18 @@ if test "$(find "$STAGE2_PACKAGES" -regex ".*/$PACKAGE-.*pkg\\.tar\\.xz" | wc -l
# install onto stage 1 system via pacman
+ if test "$FORCE_INSTALL"; then
+ FORCE="--force"
+ fi
+
ssh -i $CROSS_HOME/.ssh/id_rsa root@$STAGE1_MACHINE_IP bash -c "'
# TODO: broken [temp] repo
if test \"$ADDITIONAL_INSTALL_PACKAGE\" != \"\"; then
- #pacman --noconfirm -Syy $PACKAGE $ADDITIONAL_INSTALL_PACKAGE
- pacman --noconfirm -U /packages/$TARGET_CPU/$PACKAGE-*.pkg.tar.xz /packages/$TARGET_CPU/$ADDITIONAL_INSTALL_PACKAGE-*.pkg.tar.xz
+ #pacman $FORCE --noconfirm -Syy $PACKAGE $ADDITIONAL_INSTALL_PACKAGE
+ pacman $FORCE --noconfirm -U /packages/$TARGET_CPU/$PACKAGE-*.pkg.tar.xz /packages/$TARGET_CPU/$ADDITIONAL_INSTALL_PACKAGE-*.pkg.tar.xz
else
- #pacman --noconfirm -Syy $PACKAGE
- pacman --noconfirm -U /packages/$TARGET_CPU/$PACKAGE-*.pkg.tar.xz
+ #pacman $FORCE --noconfirm -Syy $PACKAGE
+ pacman $FORCE --noconfirm -U /packages/$TARGET_CPU/$PACKAGE-*.pkg.tar.xz
fi
'"