diff --git a/tog-pegasus.spec b/tog-pegasus.spec index 8e0bab9..9fe94a3 100644 --- a/tog-pegasus.spec +++ b/tog-pegasus.spec @@ -8,7 +8,7 @@ Name: tog-pegasus Version: %{major_ver}.0 -Release: 21%{?dist} +Release: 22%{?dist} Epoch: 2 Summary: OpenPegasus WBEM Services for Linux @@ -414,7 +414,7 @@ make prestarttests if [ $1 -gt 1 ]; then if [ -d /var/lib/Pegasus/repository ]; then if [ -d /var/lib/Pegasus/prev_repository ]; then - mv /var/lib/Pegasus/prev_repository /var/lib/Pegasus/prev_repository_`date '+%Y-%m-%d-%s.%N'`.rpmsave; + rm -rf /var/lib/Pegasus/prev_repository fi; mv /var/lib/Pegasus/repository /var/lib/Pegasus/prev_repository; fi @@ -433,7 +433,6 @@ if [ $1 -ge 1 ]; then # The user's old repository was moved to /var/lib/Pegasus/prev_repository, which # now must be upgraded to the new repository in /var/lib/Pegasus/repository: /usr/sbin/repupgrade 2>> /var/lib/Pegasus/log/install.log || :; - mv /var/lib/Pegasus/prev_repository /var/lib/Pegasus/prev_repository_`date '+%Y-%m-%d-%s.%N'`.rpmsave; fi; /bin/systemctl try-restart tog-pegasus.service >/dev/null 2>&1 || :; fi; @@ -509,6 +508,10 @@ fi %changelog +* Mon Feb 02 2015 Vitezslav Crhonek - 2:2.13.0-22 +- Backup only latest repository when upgrading the package + Resolves: #1069620 + * Mon Jan 26 2015 Vitezslav Crhonek - 2:2.13.0-21 - Exclude accidentaly packed tmpfiles dir from -libs subpackage on i686 Resolves: #1185133