2 set +e
# its okay to fail in these script, most of the time the apt* stuff will generate errors
4 local TESTDIR
=$(readlink -f $(dirname $0))
6 BUILDDIRECTORY
="${TESTDIR}/../../build/bin"
13 trap "rm -rf $WORKDIR" 0 HUP INT QUIT ILL ABRT FPE SEGV PIPE TERM
15 TMPGEN
=$WORKDIR/Packages
18 LISTOFPKGS
=$(aptget install $* -t $CODENAME -so Dir::state::status=$WORKDIR/status -o Dir::Cache::archives=$WORKDIR -o pkgCacheGen::Essential=none -o APT::Immediate-Configure=0 2> /dev/null | awk '/^Inst/ {print $2}' | sed -e "s#\$#/$CODENAME#")
19 aptcache show
$LISTOFPKGS --no-all-versions 2> /dev
/null
> $TMPGEN
22 -e '/^SHA1: / d' -e '/^SHA256: / d' \
23 -e '/^Homepage: / d' -e '/^Tag: / d' \
24 -e '/^Xul-Appid: / d' \
27 if echo "$GENERATE" | grep '^status-' > /dev
/null
; then
28 sed -i $TMPGEN -e '/^Package: / a\
29 Status: install ok installed' \
30 -e '/^Filename: / d' -e '/^Size: / d' -e '/^MD5sum: / d'
33 apt
-sortpkgs $TMPGEN > $GENERATE