From f4312618938b7e42e4ab1062f62c131689531e45 Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Thu, 20 Feb 2025 02:03:46 +0100 Subject: [PATCH] - drop old triggers --- poldek.spec | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/poldek.spec b/poldek.spec index a82e753..a855c91 100644 --- a/poldek.spec +++ b/poldek.spec @@ -392,39 +392,6 @@ fi %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig -%triggerpostun -- poldek < 0.30-0.20080225.00.1 -if ! grep -q '^%%includedir repos.d' %{_sysconfdir}/%{name}/poldek.conf; then - %{__sed} -i -e '/^%%include source.conf/{ - a - a# /etc/poldek/repos.d/*.conf - a%%includedir repos.d - }' %{_sysconfdir}/%{name}/poldek.conf -fi - -%{__sed} -i -e '/%%include %%{_distro}-source.conf/d' %{_sysconfdir}/%{name}/poldek.conf -%{__sed} -i -e '/%%include %%{_distro}-multilib-source.conf/d' %{_sysconfdir}/%{name}/poldek.conf - -if [ -f %{_sysconfdir}/%{name}/tld-source.conf.rpmsave ]; then - %{__mv} -f %{_sysconfdir}/%{name}/repos.d/tld.conf{,.rpmnew} - %{__mv} -v %{_sysconfdir}/%{name}/tld-source.conf.rpmsave %{_sysconfdir}/%{name}/repos.d/tld.conf -fi - -%ifarch %{x8664} -if [ -f %{_sysconfdir}/%{name}/tld-multilib-source.conf.rpmsave ]; then - %{__mv} -f %{_sysconfdir}/%{name}/repos.d/tld-multilib.conf{,.rpmnew} - %{__mv} -v %{_sysconfdir}/%{name}/tld-multilib-source.conf.rpmsave %{_sysconfdir}/%{name}/repos.d/tld-multilib.conf -fi -%endif - -%triggerpostun -- %{name} < 0.30.1-8 -if [ $1 -le 1 ]; then - # revert change on --downgrade - %{__sed} -i -re 's,^pm command = %{pkglibexecdir}/pm-command.sh,#&,' %{_sysconfdir}/%{name}/%{name}.conf -else - # setup pm command - %{__sed} -i -re 's,#?(pm command =).*,\1 %{pkglibexecdir}/pm-command.sh,' %{_sysconfdir}/%{name}/%{name}.conf -fi - %files -f %{name}.lang %defattr(644,root,root,755) %doc ChangeLog README* NEWS configs -- 2.49.0