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
This commit is contained in:
Dominique Leuenberger 2018-04-24 07:18:47 +00:00 committed by Git OBS Bridge
parent 54dbbc55f1
commit aa47d2c750
2 changed files with 8 additions and 11 deletions

View File

@ -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

View File

@ -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