Accepting request 1126603 from GNOME:Factory

- avahi-autoipd: only migrate files owned by avahi user if said
  user exists: if the user does not exist (fresh installs), then
  there is no chance any file is owned by the user (boo#1216730). (forwarded request 1125434 from dimstar)

OBS-URL: https://build.opensuse.org/request/show/1126603
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/avahi?expand=0&rev=162
This commit is contained in:
Ana Guerrero 2023-11-16 19:26:53 +00:00 committed by Git OBS Bridge
commit 109a3e67c4
2 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Nov 13 10:15:01 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>
- avahi-autoipd: only migrate files owned by avahi user if said
user exists: if the user does not exist (fresh installs), then
there is no chance any file is owned by the user (boo#1216730).
-------------------------------------------------------------------
Wed Nov 1 06:19:44 UTC 2023 - Alynx Zhou <alynx.zhou@suse.com>

View File

@ -1,5 +1,5 @@
#
# spec file for package avahi
# spec file
#
# Copyright (c) 2023 SUSE LLC
#
@ -413,8 +413,8 @@ Obsoletes: avahi-glib2-utils-gtk < %{version}
Avahi is an implementation of the DNS Service Discovery and Multicast
DNS specifications for Zeroconf Computing.
# This is the avahi-discover command, only provided for the primary python3 flavor
# This is the avahi-discover command, only provided for the primary python3 flavor
%package -n python3-avahi-gtk
Summary: A set of Avahi utilities written in Python Using python-gtk
Group: Development/Languages/Python
@ -713,8 +713,10 @@ fi
%post autoipd
%{fillup_only -ns avahi autoipd}
# Change ownership of /var/lib/avahi-autoipd after upgrade from openSUSE <= 12.3 and SLE <= 11.
find %{_localstatedir}/lib/avahi-autoipd -user avahi -exec chown avahi-autoipd:avahi-autoipd {} +
if getent passwd avahi > /dev/null; then
# Change ownership of /var/lib/avahi-autoipd after upgrade from openSUSE <= 12.3 and SLE <= 11.
find %{_localstatedir}/lib/avahi-autoipd -user avahi -exec chown avahi-autoipd:avahi-autoipd {} +
fi
%ldconfig_scriptlets -n libavahi-client%{avahi_client_sover}
%ldconfig_scriptlets -n libavahi-common%{avahi_common_sover}