Browse Source

Merge pull request #9959 from vrutkovs/spec-examples

spec: remove roles/openshift_examples/latest symlink
OpenShift Merge Robot 6 years ago
parent
commit
f0e7221714
1 changed files with 7 additions and 0 deletions
  1. 7 0
      openshift-ansible.spec

+ 7 - 0
openshift-ansible.spec

@@ -160,6 +160,13 @@ BuildArch:     noarch
 %files roles
 %{_datadir}/ansible/%{name}/roles
 
+%pretrans roles
+#RHBZ https://bugzilla.redhat.com/show_bug.cgi?id=1626048
+#roles/openshift_examples/latest used to be a symlink, now its a dir
+# workaround for RPM bug https://bugzilla.redhat.com/show_bug.cgi?id=975909
+if [ -d %{_datadir}/ansible/%{name}/roles/openshift_examples/files/examples ]; then
+  find %{_datadir}/ansible/%{name}/roles/openshift_examples/files/examples -name latest -type l -delete
+fi
 
 
 %changelog