Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 01 Mar 2024 09:35:13 +0000
From:      bugzilla-noreply@freebsd.org
To:        pkg@FreeBSD.org
Subject:   [Bug 277411] ports-mgmt/pkg: @postunexec command in pkg-plist isn't executed when package is upgraded with `pkg upgrade`
Message-ID:  <bug-277411-32340-MDGtVTwgSs@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-277411-32340@https.bugs.freebsd.org/bugzilla/>
References:  <bug-277411-32340@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277411

--- Comment #3 from Yasuhiro Kimura <yasu@freebsd.org> ---
(In reply to Yasuhiro Kimura from comment #2)

OK, the answer hits upon me. Old symlink is removed by adding following lin=
e to
new pkg-plist

----------------------------------------------------------------------
@preexec [ -L %D/man/man1/gpg.1.gz ] || rm -f %D/man/man1/gpg.1.gz
----------------------------------------------------------------------

When the package is upgraded with `pkg upgrade` ${PREFIX}/man/man1/gpg.1.gz=
 is
removed before instlalling new version.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-277411-32340-MDGtVTwgSs>