diff options
author | dancer <dancer> | 2005-06-07 23:27:52 +0000 |
---|---|---|
committer | dancer <dancer> | 2005-06-07 23:27:52 +0000 |
commit | cbbda01ccddbe2f1480d70489e6ec2a0d32dc7ef (patch) | |
tree | 3067b8af66889ed13b51f952e53ceb0ad886f395 | |
parent | bfbdcbc7eee3c4846f13e653e6bfffb31dfad772 (diff) | |
download | pbuilder-cbbda01ccddbe2f1480d70489e6ec2a0d32dc7ef.tar pbuilder-cbbda01ccddbe2f1480d70489e6ec2a0d32dc7ef.tar.gz |
initial import to this repository
-rwxr-xr-x | pbuildd/install-test.sh | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pbuildd/install-test.sh b/pbuildd/install-test.sh new file mode 100755 index 0000000..1aa3f7e --- /dev/null +++ b/pbuildd/install-test.sh @@ -0,0 +1,42 @@ +#!/bin/bash +# all-rebuilder script. + +set -e + +. buildd-config.sh + +SUCCESS=install-success +FAIL=install-fail +WORKING=install-work +mkdir $SUCCESS || true +mkdir $FAIL || true +mkdir $WORKING || true + +function buildone() { + local PROGNAME="$1" + local LOGFILE=${WORKING}/"$PROGNAME.log" + + echo "Trying $1" + if pbuilder-user-mode-linux execute --logfile "$LOGFILE" /usr/share/doc/pbuilder/examples/execute_installtest.sh "$1"; then + mv "$LOGFILE" "$SUCCESS" + echo " Install successful" + else + mv "$LOGFILE" "$FAIL" + echo " Install fail" + fi +} + +$ROOTCOMMAND dselect update +#$ROOTCOMMAND pbuilder update +pbuilder-user-mode-linux update + +tmpfile=$(tempfile) +wget "${MIRROR}"/debian/dists/unstable/main/binary-i386/Packages.gz -O${tmpfile} + +for A in $( zcat ${tmpfile} | sed -n 's/^Package: //p' | bogosort -n ); do + #waitingroutine + buildone $A +done + +rm -f ${tmpfile} + |