[pacman-dev] [PATCH] Clean partial downloads from cache

Allan McRae allan at archlinux.org
Sat May 18 10:21:40 EDT 2013


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 at archlinux.org>
---
 src/pacman/sync.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/pacman/sync.c b/src/pacman/sync.c
index e8da346..2093029 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;
 
-- 
1.8.2.3



More information about the pacman-dev mailing list