[packages/rpm-pld-macros] - fix tcl_version macro expanding to nothing if tclsh is not present
baggins
baggins at pld-linux.org
Mon Mar 1 20:42:51 CET 2021
commit ca5c131894c9478432028c4843cbd804f9f32037
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Mon Mar 1 20:41:47 2021 +0100
- fix tcl_version macro expanding to nothing if tclsh is not present
macros.tcl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/macros.tcl b/macros.tcl
index 5f784d1..b51d861 100644
--- a/macros.tcl
+++ b/macros.tcl
@@ -2,6 +2,6 @@
%__tclsh /usr/bin/tclsh
-%tcl_version %{expand:%%global tcl_version %(echo 'puts $tcl_version' | %{__tclsh})}%tcl_version
+%tcl_version %{expand:%%global tcl_version %(V=$(echo 'puts $tcl_version' | %{__tclsh}); echo ${V:-0})}%tcl_version
%tcl_sitearch %{_libdir}/tcl%{tcl_version}
%tcl_sitelib %{_datadir}/tcl%{tcl_version}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-pld-macros.git/commitdiff/3f9ff11642326aa1c9ef7191bb64d046219837a4
More information about the pld-cvs-commit
mailing list