#!/bin/sh
#
# This is being executed in binary_local-hooks
#
# To help compare ISOs, add volatile-task/language pack's packages to binary.mainfest.
#

set -x

#Add volatile-task packages to binary.mainfest.
chroot chroot/ dpkg-query -W --showformat='${Package}\t${Version}\n' > binary/casper/filesystem.manifest.chroot

touch binary/casper/filesystem.manifest.volatile.and.langpacks

for x in $(find chroot/usr/share/volatile/ binary/pool -name "*.deb" -print);
    do dpkg-deb -W "$x" >> binary/casper/filesystem.manifest.volatile.and.langpacks
done
    
cat binary/casper/filesystem.manifest.chroot binary/casper/filesystem.manifest.volatile.and.langpacks binary/casper/filesystem.manifest | sort -n | uniq > binary.manifest

exit 0
