|
@@ -11,7 +11,10 @@ insertpackage 'testing' 'foo' 'all' '1'
|
|
|
insertpackage 'unstable' 'foo' 'all' '2'
|
|
insertpackage 'unstable' 'foo' 'all' '2'
|
|
|
insertinstalledpackage 'foo' 'all' '3'
|
|
insertinstalledpackage 'foo' 'all' '3'
|
|
|
|
|
|
|
|
-setupaptarchive
|
|
|
|
|
|
|
+setupaptarchive --no-update
|
|
|
|
|
+
|
|
|
|
|
+mkdir -p rootdir/var/lib/apt/lists/lost+found
|
|
|
|
|
+testsuccess apt update
|
|
|
|
|
|
|
|
# nothing to do always works
|
|
# nothing to do always works
|
|
|
testsuccess aptget clean
|
|
testsuccess aptget clean
|
|
@@ -19,7 +22,7 @@ testsuccess aptget clean -s
|
|
|
|
|
|
|
|
# generate some dirt and clean it up
|
|
# generate some dirt and clean it up
|
|
|
touch rootdir/var/lib/apt/lists/partial/http.debian.net_debian_dists_sid_main_i18n_Translation-en
|
|
touch rootdir/var/lib/apt/lists/partial/http.debian.net_debian_dists_sid_main_i18n_Translation-en
|
|
|
-mkdir -p rootdir/var/cache/apt/archives
|
|
|
|
|
|
|
+mkdir -p rootdir/var/cache/apt/archives/lost+found
|
|
|
touch rootdir/var/cache/apt/archives/foo_1_all.deb
|
|
touch rootdir/var/cache/apt/archives/foo_1_all.deb
|
|
|
touch rootdir/var/cache/apt/archives/foo_2_all.deb
|
|
touch rootdir/var/cache/apt/archives/foo_2_all.deb
|
|
|
touch rootdir/var/cache/apt/archives/foo_3_all.deb
|
|
touch rootdir/var/cache/apt/archives/foo_3_all.deb
|