diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pacman/sync.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/pacman/sync.c b/src/pacman/sync.c index 3b094854..0b9e790f 100644 --- a/src/pacman/sync.c +++ b/src/pacman/sync.c @@ -239,6 +239,16 @@ static int sync_cleancache(int level) continue; } + /* skip package deltas, we aren't smart enough to clean these yet */ + if(fnmatch("*.delta", ent->d_name, 0) == 0) { + continue; + } + + /* skip any partial downloads */ + if(fnmatch("*.part", ent->d_name, 0) == 0) { + continue; + } + /* build the full filepath */ snprintf(path, PATH_MAX, "%s%s", cachedir, ent->d_name); |