summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-04-19 12:08:03 +0200
committerErich Eckner <git@eckner.net>2016-04-19 12:08:03 +0200
commitb8c6d3eef1352bab54b8424f2c8dbd5c4ecaef84 (patch)
tree4f5d579eb9c0c5076635db2e87ae55d9b416a1fc
parentd9c32afaa3937096612de1b22ff76766f9b3be65 (diff)
downloadarchlinuxewe.git.save-b8c6d3eef1352bab54b8424f2c8dbd5c4ecaef84.tar.xz
archPackagesUpdate checkt jetzt alle chroots
-rwxr-xr-xarchPackagesUpdate119
1 files changed, 62 insertions, 57 deletions
diff --git a/archPackagesUpdate b/archPackagesUpdate
index b31e4fc1..e59437a6 100755
--- a/archPackagesUpdate
+++ b/archPackagesUpdate
@@ -175,72 +175,77 @@ done
if ${aufRechenknecht}
then
+
# check sanity of build-chroots
- basePakete="$(
- echo '
- pacman -Qg base base-devel | \
- cut -d " " -f 2 | \
- sort -u
- exit
- ' | \
- chrootUnpriv
- )"
- explizitinstalliertePakete="$(
- echo '
- pacman -Qtt | \
- cut -d " " -f 1
- exit
- ' | \
- chrootUnpriv
- )"
- alleinstalliertenPakete="$(
- echo '
- pacman -Q | \
- cut -d " " -f 1
- exit
- ' | \
- chrootUnpriv
- )"
- zuvielePakete="$(
- (
+ err=false
+ for chrootDir in /opt/arch*
+ do
+ [ -d "${chrootDir}" ] || continue
+ basePakete="$(
+ echo '
+ pacman -Qg base base-devel | \
+ cut -d " " -f 2 | \
+ sort -u
+ exit
+ ' | \
+ chrootUnpriv "${chrootDir}"
+ )"
+ explizitinstalliertePakete="$(
+ echo '
+ pacman -Qtt | \
+ cut -d " " -f 1
+ exit
+ ' | \
+ chrootUnpriv "${chrootDir}"
+ )"
+ alleinstalliertenPakete="$(
+ echo '
+ pacman -Q | \
+ cut -d " " -f 1
+ exit
+ ' | \
+ chrootUnpriv "${chrootDir}"
+ )"
+ zuvielePakete="$(
(
+ (
+ echo "${explizitinstalliertePakete}"
+ echo "${basePakete}"
+ ) | \
+ sort | \
+ uniq -d
echo "${explizitinstalliertePakete}"
- echo "${basePakete}"
) | \
sort | \
- uniq -d
- echo "${explizitinstalliertePakete}"
- ) | \
- sort | \
- uniq -u
- )"
- zuwenigePakete="$(
- (
+ uniq -u
+ )"
+ zuwenigePakete="$(
(
- echo "${alleinstalliertenPakete}"
+ (
+ echo "${alleinstalliertenPakete}"
+ echo "${basePakete}"
+ ) | \
+ sort | \
+ uniq -d
echo "${basePakete}"
) | \
sort | \
- uniq -d
- echo "${basePakete}"
- ) | \
- sort | \
- uniq -u
- )"
+ uniq -u
+ )"
- err=false
- if [ -n "${zuvielePakete}" ]
- then
- >&2 echo 'zu viele Pakete installiert:'
- >&2 echo "${zuvielePakete}"
- err=true
- fi
- if [ -n "${zuwenigePakete}" ]
- then
- >&2 echo 'zu wenige Pakete installiert:'
- >&2 echo "${zuwenigePakete}"
- err=true
- fi
+ if [ -n "${zuvielePakete}" ]
+ then
+ >&2 echo 'zu viele Pakete in "'${chrootDir}'" installiert:'
+ >&2 echo "${zuvielePakete}"
+ err=true
+ fi
+ if [ -n "${zuwenigePakete}" ]
+ then
+ >&2 echo 'zu wenige Pakete in "'${chrootDir}'" installiert:'
+ >&2 echo "${zuwenigePakete}"
+ err=true
+ fi
+ done
${err} && exit 1
@@ -272,7 +277,7 @@ then
_targetHost='\''--host=i686-pc-linux-gnu'\'' makepkg --config "'"${tmpDir}"'/makepkg32.conf" --sign -fcsr --noconfirm && \
exit\
' | \
- chrootUnpriv
+ chrootUnpriv /opt/arch32
err[${i}]=$?
else
# everything else is built directly