summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2013-05-18 16:20:01 +0200
committerAllan McRae <allan@archlinux.org>2013-05-29 06:08:03 +0200
commita975523fb97fdb65245f3d3a4e0c581c9dbeef3f (patch)
tree79ffeb02a40fb19256da3a13199707380190ba05
parentdece66ac180ccc9fa0854e2bb181cd7585ac81a3 (diff)
downloadpacman-a975523fb97fdb65245f3d3a4e0c581c9dbeef3f.tar.gz
pacman-a975523fb97fdb65245f3d3a4e0c581c9dbeef3f.tar.xz
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>
-rw-r--r--src/pacman/sync.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pacman/sync.c b/src/pacman/sync.c
index e8da3460..20930290 100644
--- a/src/pacman/sync.c
+++ b/src/pacman/sync.c
@@ -238,9 +238,7 @@ static int sync_cleancache(int level)
/* skip source packages within the cache directory */
"*.src.tar.*",
/* skip package deltas, we aren't smart enough to clean these yet */
- "*.delta",
- /* skip any partial downloads */
- "*.part"
+ "*.delta"
};
size_t j;