diff options
author | David Kalnischkies <david@kalnischkies.de> | 2015-11-19 16:19:15 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2015-11-19 17:56:07 +0100 |
commit | 6aef1942f441e6e667982b92802907026d8cc7c6 (patch) | |
tree | 5b51b71e213a321db6f8ac7c8903aa021ba4442b /test/integration/test-apt-get-clean | |
parent | 87d6947d51717e8b0e975d913986161598a7259a (diff) |
ignore lost+found in private directory cleanup
In ce1f3a2c we started warning about failing unlinking, which we
consistently do for directories. That isn't a problem as directories
usually aren't in the places we do want to clean up – with the potential
exeception of "lost+found", so lets ignore it like we ignore our own
partial/ subdirectory.
Closes: 805424
Diffstat (limited to 'test/integration/test-apt-get-clean')
-rwxr-xr-x | test/integration/test-apt-get-clean | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/integration/test-apt-get-clean b/test/integration/test-apt-get-clean index 31e9900c9..00f9d4e60 100755 --- a/test/integration/test-apt-get-clean +++ b/test/integration/test-apt-get-clean @@ -11,7 +11,10 @@ insertpackage 'testing' 'foo' 'all' '1' insertpackage 'unstable' 'foo' 'all' '2' 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 testsuccess aptget clean @@ -19,7 +22,7 @@ testsuccess aptget clean -s # generate some dirt and clean it up 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_2_all.deb touch rootdir/var/cache/apt/archives/foo_3_all.deb |