index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | src/pacman/sync.c | 10 |
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); |