From 4d847ca07fb042885c4baa852e268d1d0ee2392a5499b46064c87e0c85b742e4 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Tue, 17 Nov 2015 17:07:22 +0000 Subject: [PATCH] No longer produce the html files OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/appstream-glib?expand=0&rev=50 --- appstream-glib.changes | 8 ++++++++ openSUSE-appstream-process | 29 +++++++++++++++++------------ 2 files changed, 25 insertions(+), 12 deletions(-) diff --git a/appstream-glib.changes b/appstream-glib.changes index 2d2d042..a7ea41f 100644 --- a/appstream-glib.changes +++ b/appstream-glib.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue Nov 17 17:04:18 UTC 2015 - dimstar@opensuse.org + +- openSUSE-appstream-process: Do not produce html files; + the biggest chunks of apps are done and the few users still + caring can produce them anytime out of the provided .xml.gz + files. + ------------------------------------------------------------------- Sat Nov 7 14:00:47 UTC 2015 - zaitor@opensuse.org diff --git a/openSUSE-appstream-process b/openSUSE-appstream-process index 270e130..acde898 100644 --- a/openSUSE-appstream-process +++ b/openSUSE-appstream-process @@ -3,6 +3,9 @@ SRC=$1 DEST=$2 URL=https://static.opensuse.org/appstream/tumbleweed +# Do not produce the html files - the biggest tasks are done +# Users interested in them can always produce them locally out of the appdata.xml.gz file +HTMLOUT=no /usr/bin/appstream-builder \ --enable-hidpi \ @@ -22,18 +25,20 @@ URL=https://static.opensuse.org/appstream/tumbleweed # /usr/share/app-screenshots \ # /tmp/apb-screenshots -/usr/bin/appstream-util \ - status-html \ - ${DEST}/appdata.xml.gz \ - ${DEST}/appdata.html +if [ "$HTMLOUT" = "yes" ]; then + /usr/bin/appstream-util \ + status-html \ + ${DEST}/appdata.xml.gz \ + ${DEST}/appdata.html -# compress the HTML file (boo#942985) -xz -9 ${DEST}/appdata.html + # compress the HTML file (boo#942985) + xz -9 ${DEST}/appdata.html -/usr/bin/appstream-util \ - status-html \ - ${DEST}/appdata-failed.xml.gz \ - ${DEST}/appdata-failed.html + /usr/bin/appstream-util \ + status-html \ + ${DEST}/appdata-failed.xml.gz \ + ${DEST}/appdata-failed.html -# compress the HTML file (boo#942985) -xz -9 ${DEST}/appdata-failed.html + # compress the HTML file (boo#942985) + xz -9 ${DEST}/appdata-failed.html +fi