public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/bind] f45: Cleanup old alternative names containing bind- prefix
Date: Fri, 16 Oct 2026 14:52:21 GMT	[thread overview]
Message-ID: <179216234158.1.16182926381323791320.rpms-bind-9fdec96d0772@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/bind
            Branch : f45
            Commit : 9fdec96d077207a64c71d53c9c6779214de762e8
            Author : Petr Menšík <pemensik@redhat.com>
            Date   : 2026-10-13T19:51:02+02:00
            Stats  : +12/-0 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/bind/c/9fdec96d077207a64c71d53c9c6779214de762e8?branch=f45

            Log:
            Cleanup old alternative names containing bind- prefix

Should be replaced by bind9- prefix in all cases. More obvious in all
cases. Should be done only on upgrades.

---
diff --git a/bind.spec b/bind.spec
index 9ae4e38..35d2d82 100644
--- a/bind.spec
+++ b/bind.spec
@@ -904,6 +904,9 @@ fi
   for UNIT in %{main_unit}; do
     %{altrmunit $UNIT}
   done
+  if [ $1 -gt 1 ] ; then
+    alternatives --remove %{oldname}-named  %{_sbindir}/named%{program_suffix} 2>/dev/null || :
+  fi
   alternatives --install %{_sbindir}/named %{upname}-named %{_sbindir}/named%{program_suffix} %{alternatives_prio} \
                       %{altfman named 8}                 \
                       %{altfunit named.service %{name}.service} \
@@ -940,6 +943,9 @@ fi
     %{altrmsbinman ${BIN} 8}
     ALTS+="%{altfbinman $BIN 8}"
   done
+  if [ $1 -gt 1 ] ; then
+    alternatives --remove %{oldname}-utils-dig %{_bindir}/dig%{program_suffix} 2>/dev/null || :
+  fi
   alternatives --install %{_bindir}/dig %{upname}-utils-dig %{_bindir}/dig%{program_suffix} %{alternatives_prio} \
   %{altfman dig 1}          \
   ${ALTS}
@@ -968,6 +974,9 @@ fi
     fi
     [ "$BIN" != dnssec-verify ] && ALTS+="%{altfbinman $BIN 1}"
   done
+  if [ $1 -gt 1 ] ; then
+    alternatives --remove %{oldname}-dnssec-utils %{_bindir}/dnssec-verify%{program_suffix} 2>/dev/null || :
+  fi
   alternatives --install %{_bindir}/dnssec-verify %{upname}-dnssec-utils %{_bindir}/dnssec-verify%{program_suffix} %{alternatives_prio} \
   %{altfman dnssec-verify 1}          \
   $ALTS
@@ -1016,6 +1025,9 @@ fi
     fi
     ALTS+="%{altflib $BIN}"
   done
+  if [ $1 -gt 1 ] ; then
+    alternatives --remove %{oldname}-devel %{bind_include} 2>/dev/null || :
+  fi
   alternatives --install %{_includedir}/bind9 %{upname}-devel %{bind_include} %{alternatives_prio} \
     ${ALTS}
 %endif

                 reply	other threads:[~2026-10-16 14:52 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=179216234158.1.16182926381323791320.rpms-bind-9fdec96d0772@fedoraproject.org \
    --to=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