]> git.pld-linux.org Git - packages/rpm-pld-macros.git/commitdiff
- fix tcl_version macro expanding to nothing if tclsh is not present
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 1 Mar 2021 19:41:47 +0000 (20:41 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Mon, 1 Mar 2021 19:41:47 +0000 (20:41 +0100)
macros.tcl

index 5f784d134536f7d339be5e14152e1dfef45fc527..b51d86199a0bc9d54da74f862c55b03720b7b367 100644 (file)
@@ -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}
This page took 0.291992 seconds and 4 git commands to generate.