From 04da57e4f98f80dd5d6b5459079c00e72df5313b Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 27 Feb 2015 10:38:50 +0100 Subject: [PATCH] xbps-pkgdb: when checking pkg files, ignore mtime with mutable files. --- bin/xbps-pkgdb/check_pkg_files.c | 4 ++++ 1 file changed, 4 insertions(+) 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;