[packages/tmpwatch] fix trigger for upgrading from 2.11-2
glen
glen at pld-linux.org
Mon Mar 11 15:00:08 CET 2013
commit 04662a6587abddd5c6363d14b6b94ac194a809aa
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Mar 11 15:54:14 2013 +0200
fix trigger for upgrading from 2.11-2
move previous version %verify(missingok) checks to %triggerun not %triggerpostun
so the check is made when old package is still installed
currently the check made all upgrades to disable all tmpwatch system
crons
tmpwatch.spec | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tmpwatch.spec b/tmpwatch.spec
index 71d6b30..d5a8946 100644
--- a/tmpwatch.spec
+++ b/tmpwatch.spec
@@ -11,7 +11,7 @@ Summary(ru.UTF-8): Утилита удаления файлов по крите
Summary(uk.UTF-8): Утиліта видалення файлів за критерієм давності останнього доступу
Name: tmpwatch
Version: 2.11
-Release: 4
+Release: 5
License: GPL v2
Group: Applications/System
Source0: https://fedorahosted.org/releases/t/m/tmpwatch/%{name}-%{version}.tar.bz2
@@ -120,7 +120,7 @@ if [ -f /usr/sbin/amavisd ]; then
echo "That version has enabled amavis-spool cleaning"
fi
-%triggerpostun -- %{name} < 2.11-2.1
+%triggerun -- %{name} < 2.11-2.1
# if previous install had /etc/cron.daily/* files unlinked, disable the cronjob
if [ ! -e /etc/cron.daily/tmpwatch ]; then
echo DISABLE_TMPWATCH_CRON=yes >> /etc/sysconfig/tmpwatch
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/tmpwatch.git/commitdiff/04662a6587abddd5c6363d14b6b94ac194a809aa
More information about the pld-cvs-commit
mailing list