]>
git.saurik.com Git - apt.git/blob - test/integration/test-autoremove
4 local TESTDIR
=$(readlink -f $(dirname $0))
7 configarchitecture
"i386"
9 buildsimplenativepackage
"unrelated" "all" "1" "unstable"
10 buildsimplenativepackage
"po-debconf" "all" "1.0.16" "unstable"
11 buildsimplenativepackage
"debhelper" "all" "8.0.0" "unstable" "Depends: po-debconf"
14 aptget
install unrelated debhelper
-qq 2>&1 > /dev
/null
16 testfileequal
"rootdir/var/lib/apt/extended_states" "Package: po-debconf
20 aptget remove debhelper
-y -qq 2>&1 > /dev
/null
21 aptget autoremove
-y -qq 2>&1 > /dev
/null
23 testfileequal
"rootdir/var/lib/apt/extended_states" ""
25 sed -i rootdir
/var
/log
/apt
/history.log
-e '/^Commandline: / d' -e '/^Start-Date: / d' -e '/^End-Date: / d'
26 testfileequal
"rootdir/var/log/apt/history.log" '
27 Install: unrelated:i386 (1), debhelper:i386 (8.0.0), po-debconf:i386 (1.0.16, automatic)
29 Remove: debhelper:i386 (8.0.0)
31 Remove: po-debconf:i386 (1.0.16)'