Hello community,
here is the log from the commit of package brp-extract-appdata for
openSUSE:Factory checked in at 2015-04-12 00:09:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/brp-extract-appdata (Old)
and /work/SRC/openSUSE:Factory/.brp-extract-appdata.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "brp-extract-appdata"
Changes:
--------
--- /work/SRC/openSUSE:Factory/brp-extract-appdata/brp-extract-appdata.changes
2015-02-08 11:41:56.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.brp-extract-appdata.new/brp-extract-appdata.changes
2015-04-12 00:09:31.000000000 +0200
@@ -1,0 +2,10 @@
+Wed Apr 8 13:59:13 UTC 2015 - [email protected]
+
+- Bump appstream metadata to version 0.8, in order to attempt to
+ get more often valid metadata. The general structure for
+ AppStream version 0.6+ is wrapped in <component></components>
+ (<application was up to version 0.5). As we wrap simple 'appdata'
+ we can actually simply replace application=>component (stuff that
+ was introduced later would already have to be component anyway).
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ brp-extract-appdata.spec ++++++
--- /var/tmp/diff_new_pack.EmStju/_old 2015-04-12 00:09:32.000000000 +0200
+++ /var/tmp/diff_new_pack.EmStju/_new 2015-04-12 00:09:32.000000000 +0200
@@ -1,7 +1,7 @@
#
# spec file for package brp-extract-appdata
#
-# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
++++++ create-appdata-xml.pl ++++++
--- /var/tmp/diff_new_pack.EmStju/_old 2015-04-12 00:09:32.000000000 +0200
+++ /var/tmp/diff_new_pack.EmStju/_new 2015-04-12 00:09:32.000000000 +0200
@@ -43,12 +43,8 @@
# split into application chunks
my @appdatas = split(/<(?:application|component)/, $content);
for (@appdatas) {
- if (/<\/component/) {
- $_ = " <component$_";
- } else {
- $_ = " <application$_";
- }
- s/ *$//s;
+ $_ = " <component$_";
+ s/<\/application/<\/component/;
}
my %appmatches;
@@ -83,9 +79,9 @@
my $output = "$build_root$TOPDIR/OTHER/$rpmname-appdata.xml";
open(APPDATA, '>', $output) || die "can't write to $output";
print APPDATA "<?xml version='1.0'?>\n";
- my $type = 'application';
+ my $type = 'component';
$type = $1 if ($appresults{$rpmname}->[0] || '') =~
/(application|component)/;
- print APPDATA "<${type}s version='0.1'>\n";
+ print APPDATA "<${type}s version='0.8' origin='obs-appdata'>\n";
print APPDATA $_ for @{$appresults{$rpmname}};
print APPDATA "</${type}s>\n";
close APPDATA;