Accepting request 408627 from GNOME:Next
- InstallAppdata.sh: do not stumble over the presence of the appdata-failed.xml.gz file: this is for debug purpose and does not contain valid applications (boo#989031). - Add awk Requires, as the latest modification relies on awk to find the right filenames. OBS-URL: https://build.opensuse.org/request/show/408627 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libzypp-plugin-appdata?expand=0&rev=30
This commit is contained in:
parent
86e1e9dbdd
commit
c40776b616
@ -43,7 +43,9 @@ while ([ "$1" = "-R" ]); do
|
|||||||
yast2)
|
yast2)
|
||||||
# We do not validate an appdata.xml.gz in a yast2 repo: those are created by appstream-builder, and we can trust them
|
# We do not validate an appdata.xml.gz in a yast2 repo: those are created by appstream-builder, and we can trust them
|
||||||
#if appstream-util validate-relax --nonet "$6$YAST2/appdata.xml.gz" 2>&1 > /dev/null; then
|
#if appstream-util validate-relax --nonet "$6$YAST2/appdata.xml.gz" 2>&1 > /dev/null; then
|
||||||
appstream-util install-origin "$2" "$6$YAST2/"appdata*.xml.gz "$6$YAST2/"appdata-icons*.tar.gz 2>&1 > /dev/null
|
# get the real appdata.xml.gz file name out of content
|
||||||
|
APPDATA=$(awk '/appdata.*xml.gz/ && !/failed/ {print $4}' "$6/content")
|
||||||
|
appstream-util install-origin "$2" "$6$YAST2/${APPDATA}" "$6$YAST2/"appdata-icons*.tar.gz 2>&1 > /dev/null
|
||||||
#fi
|
#fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jul 15 07:25:08 UTC 2016 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
- InstallAppdata.sh: do not stumble over the presence of the
|
||||||
|
appdata-failed.xml.gz file: this is for debug purpose and does
|
||||||
|
not contain valid applications (boo#989031).
|
||||||
|
- Add awk Requires, as the latest modification relies on awk to
|
||||||
|
find the right filenames.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue May 3 14:13:12 UTC 2016 - dimstar@opensuse.org
|
Tue May 3 14:13:12 UTC 2016 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
@ -32,6 +32,8 @@ Requires: appstream-glib >= 0.3.6
|
|||||||
Requires: libzypp >= 14.29.4
|
Requires: libzypp >= 14.29.4
|
||||||
# appstreamcli is provided by the AppStream package
|
# appstreamcli is provided by the AppStream package
|
||||||
Requires: AppStream
|
Requires: AppStream
|
||||||
|
# The script uses awk to find the right filename for the appdata.xml.gz file
|
||||||
|
Requires: awk
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This plugin extends libzypp to install AppStream metadata, as extracted from the
|
This plugin extends libzypp to install AppStream metadata, as extracted from the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user