rebuild: always force clean build

master
an 2019-05-01 00:21:14 -04:00
parent b34ed6face
commit 35af22584b
1 changed files with 4 additions and 8 deletions

View File

@ -65,7 +65,7 @@ build_package() {
local special_handling
local no_pull
local install_as
local makepkg_args="-srLc --noconfirm --needed"
local makepkg_args="-srLcCf --noconfirm"
while (( $# ))
do
@ -75,6 +75,7 @@ build_package() {
shift
cd higan
make clean
make -j12
make install
;;
@ -112,7 +113,6 @@ build_package() {
makepkg_args="$makepkg_args -i"
fi
local o_pkgver=$(pkg_ver)
local pkgver
makepkg $makepkg_args
@ -121,12 +121,8 @@ build_package() {
if (( $res ))
then
pkgver=$(pkg_ver)
if [[ ! $install_as ]] || [[ ! $pkgver == $o_pkgver ]]
then
echo "error in rebuild, aborting"
exit $res
fi
echo "error in rebuild, aborting"
exit $res
fi
if [[ $install_as ]]