Clean partial downloads from cache

When using "pacman -Sc" to clean the cache, it make sense to also remove
partially downloaded files.

Fixes FS#34317.

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Allan McRae 2013-05-19 00:20:01 +10:00
parent dece66ac18
commit a975523fb9

View file

@ -238,9 +238,7 @@ static int sync_cleancache(int level)
/* skip source packages within the cache directory */ /* skip source packages within the cache directory */
"*.src.tar.*", "*.src.tar.*",
/* skip package deltas, we aren't smart enough to clean these yet */ /* skip package deltas, we aren't smart enough to clean these yet */
"*.delta", "*.delta"
/* skip any partial downloads */
"*.part"
}; };
size_t j; size_t j;