public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/bind] f45: Cleanup old alternative names containing bind- prefix
@ 2026-10-16 14:52 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-10-16 14:52 UTC (permalink / raw)
  To: git-commits

            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

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

only message in thread, other threads:[~2026-10-16 14:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-16 14:52 [rpms/bind] f45: Cleanup old alternative names containing bind- prefix 

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