From d99a4249f3e59a994b889ddc09d63be51b4f20df9c655592f524e7234e8b916d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Lie?= Date: Fri, 29 Jan 2016 16:09:05 +0000 Subject: [PATCH] Accepting request 356714 from GNOME:Next - openSUSE-appstream-process: use specific temporary/cache directories between calls. Otherwise, icons extracted from a previous run bleed into the next one. OBS-URL: https://build.opensuse.org/request/show/356714 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/appstream-glib?expand=0&rev=57 --- appstream-glib.changes | 7 +++++++ openSUSE-appstream-process | 9 +++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/appstream-glib.changes b/appstream-glib.changes index 892c32e..0abf2c0 100644 --- a/appstream-glib.changes +++ b/appstream-glib.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Jan 29 16:02:58 UTC 2016 - dimstar@opensuse.org + +- openSUSE-appstream-process: use specific temporary/cache + directories between calls. Otherwise, icons extracted from a + previous run bleed into the next one. + ------------------------------------------------------------------- Fri Jan 29 11:57:01 UTC 2016 - dimstar@opensuse.org diff --git a/openSUSE-appstream-process b/openSUSE-appstream-process index acde898..8da188c 100644 --- a/openSUSE-appstream-process +++ b/openSUSE-appstream-process @@ -7,17 +7,22 @@ URL=https://static.opensuse.org/appstream/tumbleweed # Users interested in them can always produce them locally out of the appdata.xml.gz file HTMLOUT=no +TMDIR=$(mktemp -d) + /usr/bin/appstream-builder \ --enable-hidpi \ --include-failed \ - --temp-dir=/tmp/apb \ - --cache-dir=/tmp/apb/cache \ + --temp-dir=${TMPDIR}/apb \ + --cache-dir=${TMPDIR}/apb/cache \ --origin=appdata \ --api-version=0.8 \ --basename=appdata \ --packages-dir=${SRC} \ --output-dir=${DEST} +# clean up TMPDIR again +rm -rf ${TMPDIR} + # Change screenshot URLs to our own infrastructure; disabled, as infra not ready # appstream-util mirror-screenshots \ # ${DEST}/appdata.xml.gz \