diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2011-02-10 18:10:14 +0100 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2011-02-10 18:10:14 +0100 |
commit | ec7f904e7ea1b0b8aaefbbb202ced9e19292dd76 (patch) | |
tree | 7f3daf5fdba5814a1f2ca8671d84f6768266511f /test/integration/test-apt-get-autoremove | |
parent | ef86a8a4204ad579f1ab80f728a22b2ad0d34266 (diff) |
use apt-mark instead of hand-mangling with the extended_states file
Diffstat (limited to 'test/integration/test-apt-get-autoremove')
-rwxr-xr-x | test/integration/test-apt-get-autoremove | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/integration/test-apt-get-autoremove b/test/integration/test-apt-get-autoremove index 9dfab19f5..c25ce3f58 100755 --- a/test/integration/test-apt-get-autoremove +++ b/test/integration/test-apt-get-autoremove @@ -14,10 +14,7 @@ setupaptarchive aptget install unrelated debhelper -qq 2>&1 > /dev/null testdpkginstalled 'unrelated' 'debhelper' 'po-debconf' -testfileequal 'rootdir/var/lib/apt/extended_states' 'Package: po-debconf -Architecture: i386 -Auto-Installed: 1 -' +testmarkedauto 'po-debconf' aptget remove debhelper -y -qq 2>&1 > /dev/null testdpkgnotinstalled 'debhelper' testdpkginstalled 'po-debconf' 'unrelated' @@ -43,8 +40,7 @@ testdpkginstalled "po-debconf" rm rootdir/etc/apt/apt.conf.d/00autoremove aptget autoremove -y -qq 2>&1 > /dev/null testdpkgnotinstalled 'po-debconf' - -testfileequal 'rootdir/var/lib/apt/extended_states' '' +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' ' |