On Thu, Apr 11, 2024 at 02:03:01PM -0700, Brian C. Lane wrote:
> On Thu, Apr 11, 2024 at 01:39:32PM +0000, Zbigniew Jędrzejewski-Szmek wrote:
> >    https://src.fedoraproject.org/rpms/filesystem/pull-request/11
> 
> The commit "Symlink /usr/sbin to /usr/bin if possible" would wipe out
> any symlinks in /usr/sbin that point someplace other than /usr/bin when
> everything becomes a symlink. It should make sure they all point to
> where you expect before removing them all.

Indeed. I added that check, and the same check in the place where
symlinks were removed when package was uninstalled (/usr/sbin/foo
should be removed only if it actually points to ../bin/foo).
I also added one more scriptlet to do create symlinks, so now there's
  %filetriggerin -- /usr/bin
  %filetriggerpostun -- /usr/bin
  %filetriggerpostun -- /usr/sbin
I did more testing and I think this now covers all cases of installs,
upgrades, downgrades, and reinstalls.

Zbyszek
--
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to