diff --git a/bin/xbps-pkgdb/check_pkg_files.c b/bin/xbps-pkgdb/check_pkg_files.c index 4cda3e25..d8c8cc21 100644 --- a/bin/xbps-pkgdb/check_pkg_files.c +++ b/bin/xbps-pkgdb/check_pkg_files.c @@ -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;