From 820c562e99a613cebd2dd799449f8985b94779d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulrich=20M=C3=BCller?= Date: Fri, 14 Feb 2025 15:10:42 +0100 Subject: [PATCH] acct-user/stdiscosrv: Port to ver_replacing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ulrich Müller --- acct-user/stdiscosrv/stdiscosrv-1-r1.ebuild | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/acct-user/stdiscosrv/stdiscosrv-1-r1.ebuild b/acct-user/stdiscosrv/stdiscosrv-1-r1.ebuild index 7ec9267bc6f24..201998ede29e5 100644 --- a/acct-user/stdiscosrv/stdiscosrv-1-r1.ebuild +++ b/acct-user/stdiscosrv/stdiscosrv-1-r1.ebuild @@ -1,9 +1,9 @@ -# Copyright 2019-2023 Gentoo Authors +# Copyright 2019-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit acct-user +inherit acct-user eapi9-ver DESCRIPTION="User for the Syncthing discovery server" ACCT_USER_ID=497 @@ -14,14 +14,8 @@ ACCT_USER_GROUPS=( syncthing ) acct-user_add_deps pkg_postinst() { - if [[ -n "${REPLACING_VERSIONS}" ]]; then - local rver - for rver in ${REPLACING_VERSIONS} ; do - if ver_test "${rver}" -lt 1; then - ewarn "The home directory of this user has changed to /var/lib/syncthing-discosrv" - ewarn "If you have any files in /var/lib/${PN}, move them to the new location by hand" - break - fi - done + if ver_replacing -lt 1; then + ewarn "The home directory of this user has changed to /var/lib/syncthing-discosrv" + ewarn "If you have any files in /var/lib/${PN}, move them to the new location by hand" fi }