- InstallAppdata.sh: only install AppStream metadata, that

validates.

OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libzypp-plugin-appdata?expand=0&rev=15
This commit is contained in:
Dominique Leuenberger 2015-03-31 13:41:29 +00:00 committed by Git OBS Bridge
parent 5f54fca785
commit 5ce3d4f010
3 changed files with 19 additions and 9 deletions

View File

@ -34,14 +34,18 @@ done
# Install new appdata files
while ([ "$1" = "-R" ]); do
case $4 in
rpm-md)
appstream-util install-origin "$2" $6$RPMMD/*appdata.xml.gz $6$RPMMD/*app-icons.tar.gz 2>&1 > /dev/null
;;
yast2)
appstream-util install-origin "$2" "$6$YAST2/appdata.xml.gz" "$6$YAST2/appdata-icons.tar.gz" 2>&1 > /dev/null
;;
*)
echo "unknown repo type - Appstream data not considered"
rpm-md)
if appstream-util validate-relax "$6$RPMMD/*appdata.xml.gz"; then
appstream-util install-origin "$2" "$6$RPMMD/*appdata.xml.gz" $6$RPMMD/*app-icons.tar.gz 2>&1 > /dev/null
fi
;;
yast2)
if appstream-util validate-relax "$6$YAST2/appdata.xml.gz"; then
appstream-util install-origin "$2" "$6$YAST2/appdata.xml.gz" "$6$YAST2/appdata-icons.tar.gz" 2>&1 > /dev/null
fi
;;
*)
echo "unknown repo type - Appstream data not considered"
esac
shift 6
done

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Mar 31 13:41:00 UTC 2015 - dimstar@opensuse.org
- InstallAppdata.sh: only install AppStream metadata, that
validates.
-------------------------------------------------------------------
Fri Mar 20 12:55:38 UTC 2015 - dimstar@opensuse.org

View File

@ -30,7 +30,7 @@ BuildArch: noarch
BuildRequires: appstream-glib >= 0.2.4
BuildRequires: fdupes
# appstream-glib >= 0.3.6 is the first to correctly to appstream-util uninstall in /var/cache
Requires: appstream-glib >= 0.3.6
Requires: appstream-glib > 0.3.5
# appdata hook was introduced in libzypp 14.29.4
Requires: libzypp >= 14.29.4