summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2013-05-19 00:20:01 +1000
committerAllan McRae <allan@archlinux.org>2013-05-29 14:08:03 +1000
commita975523fb97fdb65245f3d3a4e0c581c9dbeef3f (patch)
tree79ffeb02a40fb19256da3a13199707380190ba05 /src
parentdece66ac180ccc9fa0854e2bb181cd7585ac81a3 (diff)
downloadpacman-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>
Diffstat (limited to 'src')
-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;