xbps-pkgdb: when checking pkg files, ignore mtime with mutable files.

This commit is contained in:
Juan RP 2015-02-27 10:38:50 +01:00
parent 976718417b
commit 04da57e4f9

View File

@ -58,6 +58,10 @@ check_file_mtime(xbps_dictionary_t d, const char *pkg, const char *path)
if (!xbps_dictionary_get_uint64(d, "mtime", &mtime))
return false;
/* if file is mutable, we don't care if it does not match */
if (xbps_dictionary_get(d, "mutable"))
return false;
if (stat(path, &sb) == -1)
return true;