From aa47d2c7506c89def24aa55d491edd1696fb076360e0bed295e10e87d359f99e Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Tue, 24 Apr 2018 07:18:47 +0000 Subject: [PATCH] Accepting request 600291 from GNOME:Next - Drop the post scriptlet attempting to fix boo#1009745: at the time this script is executed on a fresh install, the repos are not yet setup in the chroot, resulting in the zypper lr call to fail and the AS data still not being initialzied. OBS-URL: https://build.opensuse.org/request/show/600291 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libzypp-plugin-appdata?expand=0&rev=45 --- libzypp-plugin-appdata.changes | 8 ++++++++ libzypp-plugin-appdata.spec | 11 ----------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/libzypp-plugin-appdata.changes b/libzypp-plugin-appdata.changes index 0f7b89b..0bf5073 100644 --- a/libzypp-plugin-appdata.changes +++ b/libzypp-plugin-appdata.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri Apr 20 13:45:17 UTC 2018 - dimstar@opensuse.org + +- Drop the post scriptlet attempting to fix boo#1009745: at the + time this script is executed on a fresh install, the repos are + not yet setup in the chroot, resulting in the zypper lr call to + fail and the AS data still not being initialzied. + ------------------------------------------------------------------- Tue Mar 27 11:26:55 UTC 2018 - dimstar@opensuse.org diff --git a/libzypp-plugin-appdata.spec b/libzypp-plugin-appdata.spec index ba70aba..aaac340 100644 --- a/libzypp-plugin-appdata.spec +++ b/libzypp-plugin-appdata.spec @@ -70,17 +70,6 @@ cp appdata-extra/*/* %{buildroot}%{_datadir}/appdata-extra/ 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