[packages/poldek] disable x32 snap on it's primary arch as well

glen glen at pld-linux.org
Sun Mar 1 18:34:40 CET 2015


commit 255ca68a0deb7bf2fa7509ef17c3a6cf8fed7704
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Mar 1 19:34:34 2015 +0200

    disable x32 snap on it's primary arch as well

 poldek.spec | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/poldek.spec b/poldek.spec
index fd20cc3..d820812 100644
--- a/poldek.spec
+++ b/poldek.spec
@@ -357,7 +357,12 @@ install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name}/repos.d,/var/cache/%{name}}
 %endif
 
 # th-2014 snap does not exist for x32 yet
-rm -f $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/repos.d/pld-%{SNAP}-x32.conf
+%if "%{_ftp_arch}" == "x32"
+rm $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/repos.d/pld-%{SNAP}.conf
+%endif
+%if "%{_ftp_alt2_arch}" == "x32"
+rm $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/repos.d/pld-%{SNAP}-x32.conf
+%endif
 
 cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/cli.conf
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/poldek.git/commitdiff/255ca68a0deb7bf2fa7509ef17c3a6cf8fed7704



More information about the pld-cvs-commit mailing list