public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/man-pages] rawhide: Remove old man(7) alternative on updates (#2404910)
@ 2026-06-24 17:49 Florian Weimer
  0 siblings, 0 replies; only message in thread
From: Florian Weimer @ 2026-06-24 17:49 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/man-pages
Branch : rawhide
Commit : 86cc6d86c1a5afa7824a52d1d791ab479978e776
Author : Florian Weimer <fweimer@redhat.com>
Date   : 2026-06-24T19:47:36+02:00
Stats  : +7/-0 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/man-pages/c/86cc6d86c1a5afa7824a52d1d791ab479978e776?branch=rawhide

Log:
Remove old man(7) alternative on updates (#2404910)

---
diff --git a/man-pages.spec b/man-pages.spec
index 198a49c..d307263 100644
--- a/man-pages.spec
+++ b/man-pages.spec
@@ -102,6 +102,13 @@ rm %{buildroot}%{_mandir}/man1/diffman-git.1
 rm %{buildroot}%{_mandir}/man1/pdfman.1
 rm %{buildroot}%{_mandir}/man1/sortman.1
 
+%pre
+# Deregister the alternative on update.
+# See <https://bugzilla.redhat.com/show_bug.cgi?id=2404910>.
+if [ $1 -gt 1 ]; then
+    %{_sbindir}/update-alternatives --remove man.7.gz %{_mandir}/man7/man.%{name}.7.gz >/dev/null 2>&1 || :
+fi
+
 %files
 %doc README Changes
 %{_mandir}/man*/*

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-24 17:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-24 17:49 [rpms/man-pages] rawhide: Remove old man(7) alternative on updates (#2404910) Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox