public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Florian Weimer <fweimer@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/man-pages] rawhide: Remove old man(7) alternative on updates (#2404910)
Date: Wed, 24 Jun 2026 17:49:23 GMT	[thread overview]
Message-ID: <178232336350.1.17890443167212252720.rpms-man-pages-86cc6d86c1a5@fedoraproject.org> (raw)

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*/*

                 reply	other threads:[~2026-06-24 17:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178232336350.1.17890443167212252720.rpms-man-pages-86cc6d86c1a5@fedoraproject.org \
    --to=fweimer@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox