[neon/extras/kdesvn/Neon/release] debian: appstream: fix order of <release> tags

Pino Toscano null at kde.org
Thu Sep 8 11:07:49 BST 2022


Git commit 21242b65412470cd2b5d0cfc462068181afb23ba by Pino Toscano.
Committed on 22/10/2021 at 07:00.
Pushed by jriddell into branch 'Neon/release'.

appstream: fix order of <release> tags

backport upstream commit f80abcaa59535bb4fa730621d994ed89af4d9e92

M  +3    -0    debian/changelog
A  +1    -0    debian/patches/series
A  +28   -0    debian/patches/upstream_appstream-sort-releases-from-newer-to-older.patch

https://invent.kde.org/neon/extras/kdesvn/commit/21242b65412470cd2b5d0cfc462068181afb23ba

diff --git a/debian/changelog b/debian/changelog
index 407135a..9b74f1d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -14,6 +14,9 @@ kdesvn (2.1.0-2) UNRELEASED; urgency=medium
   * Switch the watch file to version 4, no changes required.
   * Remove the explicit as-needed linking, as it is done by binutils now.
   * Update lintian overrides.
+  * Backport upstream commit f80abcaa59535bb4fa730621d994ed89af4d9e92 to fix
+    the order of <release> tags in the AppStream XML file; patch
+    upstream_appstream-sort-releases-from-newer-to-older.patch.
 
  -- Debian KDE Extras Team <pkg-kde-extras at lists.alioth.debian.org>  Tue, 04 Aug 2020 08:59:11 +0200
 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a48c3a7
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+upstream_appstream-sort-releases-from-newer-to-older.patch
diff --git a/debian/patches/upstream_appstream-sort-releases-from-newer-to-older.patch b/debian/patches/upstream_appstream-sort-releases-from-newer-to-older.patch
new file mode 100644
index 0000000..5f5c169
--- /dev/null
+++ b/debian/patches/upstream_appstream-sort-releases-from-newer-to-older.patch
@@ -0,0 +1,28 @@
+From f80abcaa59535bb4fa730621d994ed89af4d9e92 Mon Sep 17 00:00:00 2001
+From: Pino Toscano <pino at kde.org>
+Date: Thu, 2 Jan 2020 23:23:16 +0100
+Subject: [PATCH] appstream: sort releases from newer to older
+
+As also the appstream validator warns, reorder the releases from the
+newest on the top to the oldest on the bottom of the list of releases.
+This is because tools may use the first release as the newest one.
+---
+ src/org.kde.kdesvn.appdata.xml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/org.kde.kdesvn.appdata.xml b/src/org.kde.kdesvn.appdata.xml
+index 36047e2b..fc432256 100644
+--- a/src/org.kde.kdesvn.appdata.xml
++++ b/src/org.kde.kdesvn.appdata.xml
+@@ -109,7 +109,7 @@
+   </provides>
+   <launchable type="desktop-id">org.kde.kdesvn.desktop</launchable>
+   <releases>
+-    <release version="2.0" date="2016-12-10"/>
+     <release version="2.1" date="2019-07-10"/>
++    <release version="2.0" date="2016-12-10"/>
+   </releases>
+ </component>
+-- 
+2.33.0
+



More information about the Neon-commits mailing list