1 |
commit: 38deed53c51aa9e75bd8c933f84121af993af7a2 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Oct 2 15:34:21 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 2 16:56:21 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=38deed53 |
7 |
|
8 |
postinst-qa-check.d: Skip checks if required tools are missing |
9 |
|
10 |
Closes: https://bugs.gentoo.org/631820 |
11 |
Reviewed-by: Zac Medico <zmedico <AT> gentoo.org> |
12 |
|
13 |
bin/postinst-qa-check.d/50gnome2-utils | 2 ++ |
14 |
bin/postinst-qa-check.d/50xdg-utils | 4 ++++ |
15 |
2 files changed, 6 insertions(+) |
16 |
|
17 |
diff --git a/bin/postinst-qa-check.d/50gnome2-utils b/bin/postinst-qa-check.d/50gnome2-utils |
18 |
index 569633fe3..7f1b0b847 100644 |
19 |
--- a/bin/postinst-qa-check.d/50gnome2-utils |
20 |
+++ b/bin/postinst-qa-check.d/50gnome2-utils |
21 |
@@ -1,6 +1,8 @@ |
22 |
# check for missing calls to gnome2-utils regen functions |
23 |
|
24 |
gnome2_icon_cache_check() { |
25 |
+ type -P gtk-update-icon-cache &>/dev/null || return |
26 |
+ |
27 |
local d f all_files=() missing |
28 |
for d in usr/share/icons/*/; do |
29 |
# gnome2_icon_cache_update updates only themes with an index |
30 |
|
31 |
diff --git a/bin/postinst-qa-check.d/50xdg-utils b/bin/postinst-qa-check.d/50xdg-utils |
32 |
index 9164f8dc1..9f5ae7cb9 100644 |
33 |
--- a/bin/postinst-qa-check.d/50xdg-utils |
34 |
+++ b/bin/postinst-qa-check.d/50xdg-utils |
35 |
@@ -1,6 +1,8 @@ |
36 |
# check for missing calls to xdg-utils regen functions |
37 |
|
38 |
xdg_desktop_database_check() { |
39 |
+ type -P update-desktop-database &>/dev/null || return |
40 |
+ |
41 |
local d f missing |
42 |
for d in usr/share/applications; do |
43 |
[[ -d ${d} ]] || continue |
44 |
@@ -39,6 +41,8 @@ xdg_desktop_database_check() { |
45 |
} |
46 |
|
47 |
xdg_mimeinfo_database_check() { |
48 |
+ type -P update-mime-database &>/dev/null || return |
49 |
+ |
50 |
local d f missing |
51 |
for d in usr/share/mime; do |
52 |
[[ -d ${d} ]] || continue |