1 |
commit: 028e76a38749c38e3661a204a5aaa5962fd55410 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 16 16:05:31 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 26 21:16:15 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=028e76a3 |
7 |
|
8 |
Use ctime in cache post-postinst checks |
9 |
|
10 |
Use ctime rather than mtime in cache post-postinst checks since mtime |
11 |
may be preserved from the original tarball, and therefore be 'long time |
12 |
ago'. ctime is more reliable in this regard. |
13 |
|
14 |
Reviewed-by: Zac Medico <zmedico <AT> gentoo.org> |
15 |
|
16 |
bin/postinst-qa-check.d/50gnome2-utils | 2 +- |
17 |
bin/postinst-qa-check.d/50xdg-utils | 4 ++-- |
18 |
2 files changed, 3 insertions(+), 3 deletions(-) |
19 |
|
20 |
diff --git a/bin/postinst-qa-check.d/50gnome2-utils b/bin/postinst-qa-check.d/50gnome2-utils |
21 |
index 68e21cb74..4e7c6eb85 100644 |
22 |
--- a/bin/postinst-qa-check.d/50gnome2-utils |
23 |
+++ b/bin/postinst-qa-check.d/50gnome2-utils |
24 |
@@ -10,7 +10,7 @@ gnome2_icon_cache_check() { |
25 |
# if the cache does not exist at all, we complain for any file |
26 |
# otherwise, we look for files newer than the cache |
27 |
[[ -f ${d}/icon-theme.cache ]] && |
28 |
- find_args+=( -newer "${d}"/icon-theme.cache ) |
29 |
+ find_args+=( -newercm "${d}"/icon-theme.cache ) |
30 |
|
31 |
# (use -mindepth 2 to easily skip the cache files) |
32 |
while read -r -d $'\0' f; do |
33 |
|
34 |
diff --git a/bin/postinst-qa-check.d/50xdg-utils b/bin/postinst-qa-check.d/50xdg-utils |
35 |
index 4bc7bee9a..b0bb029bd 100644 |
36 |
--- a/bin/postinst-qa-check.d/50xdg-utils |
37 |
+++ b/bin/postinst-qa-check.d/50xdg-utils |
38 |
@@ -9,7 +9,7 @@ xdg_desktop_database_check() { |
39 |
# if the cache does not exist at all, we complain for any file |
40 |
# otherwise, we look for files newer than the cache |
41 |
[[ -f ${d}/mimeinfo.cache ]] && |
42 |
- find_args+=( -newer "${d}"/mimeinfo.cache ) |
43 |
+ find_args+=( -newercm "${d}"/mimeinfo.cache ) |
44 |
|
45 |
# look for any .desktop files that are newer than the cache |
46 |
# and that have any mime types defined |
47 |
@@ -37,7 +37,7 @@ xdg_mimeinfo_database_check() { |
48 |
# if the cache does not exist at all, we complain for any file |
49 |
# otherwise, we look for files newer than the cache |
50 |
[[ -f ${d}/mime.cache ]] && |
51 |
- find_args+=( -newer "${d}"/mime.cache ) |
52 |
+ find_args+=( -newercm "${d}"/mime.cache ) |
53 |
|
54 |
while read -r -d $'\0' f; do |
55 |
files+=( "${f}" ) |