blob: a2403083a491acbe29540ccf88b73a0d9eccdd63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# QA check: ensure that metadata files are installed in /usr/share/metainfo
# Maintainer: Georgy Yakovlev <gyakovlev@gentoo.org>
appdata_path_check() {
[[ -d ${ED%/}/usr/share/appdata ]] || return
local found=() f
while read -d '' -r f; do
found+=( "${f%/*}" )
done < <(find "${ED%/}/usr/share/appdata" -name '*.xml' -print0 || die)
if [[ ${found[@]} ]]; then
eqawarn "QA Notice: This package seems to install metainfo files into the following"
eqawarn "location(s):"
eqawarn
eqatag -v appdata.invalid-path "${found[@]#${D%/}}"
eqawarn
eqawarn "This location is deprecated, it should not be used anymore by new software."
eqawarn "Appdata/Metainfo files should be installed into /usr/share/metainfo directory."
eqawarn "For more details, please see the freedesktop Upstream Metadata guidelines at"
eqawarn "https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html"
eqawarn
eqawarn "Gentoo Tracker bug: https://bugs.gentoo.org/709450"
eqawarn
fi
}
appdata_path_check
: # guarantee successful exit
# vim:ft=sh
|