Accepting request 814803 from home:yfjiang:branches:GNOME:Factory
- Create a skeleton flatpak repo using "flatpak remotes" instead of a manually created directory (bsc#1172316, bsc#1169619, bsc#1170416). OBS-URL: https://build.opensuse.org/request/show/814803 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/flatpak?expand=0&rev=110
This commit is contained in:
parent
6e9f10b6f4
commit
c60dc977a1
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 16 02:21:39 UTC 2020 - Yifan Jiang <yfjiang@suse.com>
|
||||||
|
|
||||||
|
- Create a skeleton flatpak repo using "flatpak remotes" instead
|
||||||
|
of a manually created directory (bsc#1172316, bsc#1169619,
|
||||||
|
bsc#1170416).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon May 18 08:53:10 UTC 2020 - Yifan Jiang <yfjiang@suse.com>
|
Mon May 18 08:53:10 UTC 2020 - Yifan Jiang <yfjiang@suse.com>
|
||||||
|
|
||||||
|
@ -179,7 +179,6 @@ rm -Rf %{buildroot}%{_libexecdir}/systemd/user-environment-generators/
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/flatpak/remotes.d
|
mkdir -p %{buildroot}%{_sysconfdir}/flatpak/remotes.d
|
||||||
mkdir -p %{buildroot}%{_localstatedir}/lib/flatpak/repo
|
|
||||||
|
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
|
|
||||||
@ -195,6 +194,11 @@ mkdir -p %{buildroot}%{_localstatedir}/lib/flatpak/repo
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
%service_add_post flatpak-system-helper.service
|
%service_add_post flatpak-system-helper.service
|
||||||
|
# Remove any empty repo directory, which is seen as invalid by flatpak. After that, create a skeleton repository using "flatpak remotes".
|
||||||
|
if [ -e "%{_localstatedir}/lib/flatpak/repo" ] && [ -z "$(ls -A %{_localstatedir}/lib/flatpak/repo)" ]; then
|
||||||
|
rm -r %{_localstatedir}/lib/flatpak/repo
|
||||||
|
fi
|
||||||
|
%{_bindir}/flatpak remotes 1> /dev/null
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%service_del_postun flatpak-system-helper.service
|
%service_del_postun flatpak-system-helper.service
|
||||||
@ -240,8 +244,7 @@ mkdir -p %{buildroot}%{_localstatedir}/lib/flatpak/repo
|
|||||||
%{_sbindir}/rcflatpak-system-helper
|
%{_sbindir}/rcflatpak-system-helper
|
||||||
%{_userunitdir}/flatpak-session-helper.service
|
%{_userunitdir}/flatpak-session-helper.service
|
||||||
%{_userunitdir}/flatpak-portal.service
|
%{_userunitdir}/flatpak-portal.service
|
||||||
%dir %{_localstatedir}/lib/flatpak
|
%ghost %dir %{_localstatedir}/lib/flatpak
|
||||||
%dir %{_localstatedir}/lib/flatpak/repo
|
|
||||||
%if %{support_environment_generators}
|
%if %{support_environment_generators}
|
||||||
%dir %{_libexecdir}/systemd/user-environment-generators
|
%dir %{_libexecdir}/systemd/user-environment-generators
|
||||||
%{_libexecdir}/systemd/user-environment-generators/60-flatpak
|
%{_libexecdir}/systemd/user-environment-generators/60-flatpak
|
||||||
|
Loading…
Reference in New Issue
Block a user