Hello community,
here is the log from the commit of package libzypp-plugin-appdata for
openSUSE:Factory checked in at 2018-03-30 11:57:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libzypp-plugin-appdata (Old)
and /work/SRC/openSUSE:Factory/.libzypp-plugin-appdata.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libzypp-plugin-appdata"
Fri Mar 30 11:57:33 2018 rev:17 rq:592387 version:1.0.1+git.20180327
Changes:
--------
---
/work/SRC/openSUSE:Factory/libzypp-plugin-appdata/libzypp-plugin-appdata.changes
2018-03-24 16:08:20.906706308 +0100
+++
/work/SRC/openSUSE:Factory/.libzypp-plugin-appdata.new/libzypp-plugin-appdata.changes
2018-03-30 11:57:37.446993272 +0200
@@ -1,0 +2,19 @@
+Tue Mar 27 11:26:55 UTC 2018 - [email protected]
+
+- Update to version 1.0.1+git.20180327:
+ * AsHelper: normalize the repo alias names
+
+-------------------------------------------------------------------
+Tue Mar 27 08:27:00 UTC 2018 - [email protected]
+
+- Start zypper lr with ZYPP_PLUGIN_APPDATA_FORCE_COLLECT=1 post
+ installation (boo#1009745).
+- Add relevant Requires(post) to ensure packages are installed in
+ the right order:
+ + appstream-glib >= 0.3.6
+ + python3-cmdln
+ + python3-createrepo_c
+ + libzypp >= 16.13.1
+ + zypper
+
+-------------------------------------------------------------------
Old:
----
openSUSE-appstream-1.0.1+git.20180321.tar.xz
New:
----
openSUSE-appstream-1.0.1+git.20180327.tar.xz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ libzypp-plugin-appdata.spec ++++++
--- /var/tmp/diff_new_pack.IzaYyh/_old 2018-03-30 11:57:38.778945102 +0200
+++ /var/tmp/diff_new_pack.IzaYyh/_new 2018-03-30 11:57:38.782944958 +0200
@@ -17,7 +17,7 @@
Name: libzypp-plugin-appdata
-Version: 1.0.1+git.20180321
+Version: 1.0.1+git.20180327
Release: 0
Summary: Extend libzypp to handle AppStream metadata
License: MIT AND CC0-1.0
@@ -30,9 +30,15 @@
Requires: appstream-glib >= 0.3.6
# appdata hook was introduced in libzypp 14.29.4
Requires: libzypp >= 14.29.4
-Requires: python3-cmdln
# AsHelper is a python program with few dependencies
+Requires: python3-cmdln
Requires: python3-createrepo_c
+Requires(post): appstream-glib >= 0.3.6
+# libzypp 16.13.1 was the version gaingin support for
ZYPP_PLUGIN_APPDATA_FORCE_COLLECT
+Requires(post): libzypp >= 16.13.1
+Requires(post): python3-cmdln
+Requires(post): python3-createrepo_c
+Requires(post): zypper
# This is one way of providing valid appstream metadata to applications
(currently the only implemented one)
Provides: appstream-provider
BuildArch: noarch
@@ -64,6 +70,17 @@
install -Dm 0755 InstallAppdata.sh
%{buildroot}%{_prefix}/lib/zypp/plugins/appdata/InstallAppdata.sh
install -Dm 0755 AsHelper.py %{buildroot}%{_libexecdir}/AsHelper
+%post
+# On initial installation, we enforce an AppStream refresh
+# ZYPP_PLUGIN_APPDATA_FORCE_COLLECT=1 instructs zypper to fire off the appdata
plugin
+# which normally would only happen on repo refresh; but for 'non-rolling'
products,
+# the default repos are all static and don't refresh. This would leave
software centers
+# in a unusable state
+# Addresses https://bugzilla.opensuse.org/show_bug.cgi?id=1009745
+if [ $1 = 1 ]; then
+ ZYPP_PLUGIN_APPDATA_FORCE_COLLECT=1 zypper -n lr >/dev/null 2>&1
+fi
+
%files
# zypp plugin triggering AppData update on repo refresh
%dir %{_prefix}/lib/zypp
++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.IzaYyh/_old 2018-03-30 11:57:38.830943222 +0200
+++ /var/tmp/diff_new_pack.IzaYyh/_new 2018-03-30 11:57:38.830943222 +0200
@@ -1,4 +1,4 @@
<servicedata>
<service name="tar_scm">
<param
name="url">https://github.com/DimStar77/openSUSE-appstream.git</param>
- <param
name="changesrevision">58e1e4e128dfe67484342418afcc61efe6e592bf</param></service></servicedata>
\ No newline at end of file
+ <param
name="changesrevision">4852b6d6bcdc33e1d8c315657e3ffb8dfbf81410</param></service></servicedata>
\ No newline at end of file
++++++ openSUSE-appstream-1.0.1+git.20180321.tar.xz ->
openSUSE-appstream-1.0.1+git.20180327.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/openSUSE-appstream-1.0.1+git.20180321/AsHelper.py
new/openSUSE-appstream-1.0.1+git.20180327/AsHelper.py
--- old/openSUSE-appstream-1.0.1+git.20180321/AsHelper.py 2018-03-21
20:05:22.000000000 +0100
+++ new/openSUSE-appstream-1.0.1+git.20180327/AsHelper.py 2018-03-27
13:24:05.000000000 +0200
@@ -64,7 +64,7 @@
print("Repotype %s unknown" % opts.type)
if RET:
- os.system(CMD.format(NAME=opts.alias, APPDATA=RET['appdata'],
ICONS=RET['appdata-icons']))
+ os.system(CMD.format(NAME=opts.alias.replace(':','_'),
APPDATA=RET['appdata'], ICONS=RET['appdata-icons']))
else:
print("could not find appdata tarball and/or icons")
@@ -83,4 +83,4 @@
if __name__ == "__main__":
asinst = AsInstall()
sys.exit( asinst.main() )
-
\ No newline at end of file
+