[Piuparts-devel] making dd-list useful

Andreas Beckmann debian at abeckmann.de
Mon Jan 30 13:16:30 UTC 2012


On 2012-01-30 12:31, Holger Levsen wrote:
> see 655854. (convert the package list to source packages first, then run dd-
> list)

for documenting the commands ...

for f in ./wheezy/main/fail ./sid/main/fail ; do echo $f: ; grep -E "command not found|: not found" $f/*.log 2>/dev/null | sort -u | sed -re 's/.*.(postrm|postinst|prerm|preinst): ([0-9]+: )?/\1: /' | sort | uniq -c | sort -rn ; done

for f in ./wheezy/main/fail ./sid/main/fail ; do grep -lE "ucfr?: command not found|ucfr?: not found" $f/*.log 2>/dev/null | sed -e 's#.*/##; s#_.*##;' ; done | sort -u > /tmp/binpkg

for p in $(cat /tmp/binpkg) ; do apt-cache showsrc $p | sed -rn 's/Package: //p' ; done | sort -u > /tmp/srcpkg

dd-list --stdin < /tmp/srcpkg

wc -l /tmp/binpkg /tmp/srcpkg
 22 /tmp/binpkg
 16 /tmp/srcpkg



More information about the Piuparts-devel mailing list