Fixed upgrading from pcs-0.9.150
This commit is contained in:
parent
0a8dadeced
commit
4013dee679
20
pcs.spec
20
pcs.spec
@ -1,6 +1,6 @@
|
||||
Name: pcs
|
||||
Version: 0.9.154
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: GPLv2
|
||||
URL: https://github.com/ClusterLabs/pcs
|
||||
Group: System Environment/Base
|
||||
@ -177,6 +177,21 @@ run_all_tests(){
|
||||
|
||||
run_all_tests
|
||||
|
||||
%pretrans -p <lua>
|
||||
-- workaround for upgrading from a broken package pcs-0.9.150-1.fc24
|
||||
-- taken from https://fedoraproject.org/wiki/Packaging:Directory_Replacement
|
||||
-- see https://bugzilla.redhat.com/show_bug.cgi?id=1370095 for details
|
||||
for i, path in pairs({
|
||||
"/usr/lib/pcsd/vendor/bundle/ruby/extensions",
|
||||
"/usr/lib/pcsd/vendor/bundle/ruby/gems",
|
||||
"/usr/lib/pcsd/vendor/bundle/ruby/specifications"
|
||||
}) do
|
||||
st = posix.stat(path)
|
||||
if st and st.type == "link" then
|
||||
os.remove(path)
|
||||
end
|
||||
end
|
||||
|
||||
%post
|
||||
%systemd_post pcsd.service
|
||||
|
||||
@ -217,6 +232,9 @@ run_all_tests
|
||||
%doc COPYING README
|
||||
|
||||
%changelog
|
||||
* Tue Oct 18 2016 Tomas Jelinek <tojeline@redhat.com> - 0.9.154-2
|
||||
- Fixed upgrading from pcs-0.9.150
|
||||
|
||||
* Thu Sep 22 2016 Tomas Jelinek <tojeline@redhat.com> - 0.9.154-1
|
||||
- Re-synced to upstream sources
|
||||
- Spec file cleanup and fixes
|
||||
|
Loading…
Reference in New Issue
Block a user