mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-11 05:48:09 -05:00
Add missing closedir calls in cache cleanup
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
72883e3bcb
commit
e6efd1932b
@ -93,11 +93,12 @@ static int sync_cleandb(const char *dbpath, int keep_used) {
|
|||||||
if(rmrf(path)) {
|
if(rmrf(path)) {
|
||||||
pm_fprintf(stderr, PM_LOG_ERROR,
|
pm_fprintf(stderr, PM_LOG_ERROR,
|
||||||
_("could not remove repository directory\n"));
|
_("could not remove repository directory\n"));
|
||||||
|
closedir(dir);
|
||||||
return(1);
|
return(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
closedir(dir);
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -215,6 +216,7 @@ static int sync_cleancache(int level)
|
|||||||
unlink(path);
|
unlink(path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
closedir(dir);
|
||||||
} else {
|
} else {
|
||||||
/* full cleanup */
|
/* full cleanup */
|
||||||
printf(_("Cache directory: %s\n"), cachedir);
|
printf(_("Cache directory: %s\n"), cachedir);
|
||||||
|
Loading…
Reference in New Issue
Block a user