Backup only latest repository when upgrading the package
This commit is contained in:
parent
5d8ddfe2aa
commit
e3822633a1
@ -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 <vcrhonek@redhat.com> - 2:2.13.0-22
|
||||
- Backup only latest repository when upgrading the package
|
||||
Resolves: #1069620
|
||||
|
||||
* Mon Jan 26 2015 Vitezslav Crhonek <vcrhonek@redhat.com> - 2:2.13.0-21
|
||||
- Exclude accidentaly packed tmpfiles dir from -libs subpackage on i686
|
||||
Resolves: #1185133
|
||||
|
Loading…
Reference in New Issue
Block a user