]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-apt-get-autoremove
check hashes of compressed files as well
[apt.git] / test / integration / test-apt-get-autoremove
index 68ea1c5741fa666324dfbacd5bc15c88c2e56924..acde4b096b0aa51b4ef0cecdf2534300e17d5fa7 100755 (executable)
@@ -42,12 +42,12 @@ testsuccess aptget autoremove -y
 testdpkgnotinstalled 'po-debconf'
 testmarkedauto
 
 testdpkgnotinstalled 'po-debconf'
 testmarkedauto
 
-sed -i rootdir/var/log/apt/history.log -e '/^Commandline: / d' -e '/^Start-Date: / d' -e '/^End-Date: / d'
-testfileequal 'rootdir/var/log/apt/history.log' '
-Install: unrelated:i386 (1), debhelper:i386 (8.0.0), po-debconf:i386 (1.0.16, automatic)
-
+sed rootdir/var/log/apt/history.log -e '/^Commandline: / d' -e '/^Start-Date: / d' -e '/^End-Date: / d' -e 's#), #)\nInstall: #g' | sort -u > apt-history.log
+testfileequal 'apt-history.log' '
+Install: debhelper:i386 (8.0.0)
+Install: po-debconf:i386 (1.0.16, automatic)
+Install: unrelated:i386 (1)
 Remove: debhelper:i386 (8.0.0)
 Remove: debhelper:i386 (8.0.0)
-
 Remove: po-debconf:i386 (1.0.16)'
 
 testsuccess aptget install debhelper -y
 Remove: po-debconf:i386 (1.0.16)'
 
 testsuccess aptget install debhelper -y