summaryrefslogtreecommitdiff
path: root/archPackagesUpdate
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-04-20 11:38:51 +0200
committerErich Eckner <git@eckner.net>2016-04-20 11:38:51 +0200
commit1b035d7c947ff5fc9c9324ea43dd21e5cb69fa62 (patch)
treeaea65c91f12bd58d712c1036ce0ac6dd7dcba055 /archPackagesUpdate
parentf2ca9782a1c55e629ff2eb4cd001f8f920fe8f43 (diff)
downloadarchlinuxewe.git.save-1b035d7c947ff5fc9c9324ea43dd21e5cb69fa62.tar.xz
archPackagesUpdate cleans cache before every build
Diffstat (limited to 'archPackagesUpdate')
-rwxr-xr-xarchPackagesUpdate45
1 files changed, 20 insertions, 25 deletions
diff --git a/archPackagesUpdate b/archPackagesUpdate
index 4d6c88b5..58ee720d 100755
--- a/archPackagesUpdate
+++ b/archPackagesUpdate
@@ -298,19 +298,6 @@ then
${err} && exit 1
-# clean pacman cache
- if ${cleanCache}
- then
- for chrootArch in 32 64
- do
- echo '
- sudo pacman -Sc --noconfirm
- exit
- ' | \
- chrootUnpriv "${chrootArch}"
- done
- fi
-
maxErr=0
# generate current makepkg.conf and makepkg32.conf
@@ -334,22 +321,30 @@ then
if [ "${arch}" == "i686" ]
then
# 32-bit is built in chroot /opt/arch32
- echo '\
- sudo pacman -Sy && \
- cd "'"${tmpDir}/${paket}"'" && \
- _targetHost='\''--host=i686-pc-linux-gnu'\'' makepkg --config "'"${tmpDir}"'/makepkg32.conf" -fcsr --noconfirm
- exit $?
- ' | \
+ (
+ ${cleanCache} && \
+ echo 'sudo pacman -Sc --noconfirm && \'
+ echo '\
+ sudo pacman -Sy && \
+ cd "'"${tmpDir}/${paket}"'" && \
+ _targetHost='\''--host=i686-pc-linux-gnu'\'' makepkg --config "'"${tmpDir}"'/makepkg32.conf" -fcsr --noconfirm
+ exit $?
+ '
+ ) | \
chrootUnpriv 32
err[${i}]=$?
else
# 64-bit is built in chroot /opt/arch64
- echo '\
- sudo pacman -Sy && \
- cd "'"${tmpDir}/${paket}"'" && \
- makepkg --config "'"${tmpDir}"'/makepkg.conf" -fcsr --noconfirm
- exit $?
- ' | \
+ (
+ ${cleanCache} && \
+ echo 'sudo pacman -Sc --noconfirm && \'
+ echo '\
+ sudo pacman -Sy && \
+ cd "'"${tmpDir}/${paket}"'" && \
+ makepkg --config "'"${tmpDir}"'/makepkg.conf" -fcsr --noconfirm
+ exit $?
+ '
+ ) | \
chrootUnpriv 64
err[${i}]=$?
fi