]> git.pld-linux.org Git - packages/rpm-build-macros.git/commitdiff
- fix for ../builder being dir (if your LOGIN=builder ;P)
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 13 Feb 2010 19:11:57 +0000 (19:11 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm.macros -> 1.536

rpm.macros

index ed2612d11c554b441631a66245700f23a308dbb7..dabcdf5162c8aba2d21e4117311ab30152d43dd7 100644 (file)
@@ -58,8 +58,8 @@
 # SPECS/SOURCES dirs exist (XXX: should be reverse?)
 %_topdir    %{expand:%%global _topdir %(d=;\
     d=${d:-$([ -d ../SPECS -a -d ../SOURCES ] && (cd .. && pwd))};\
-    d=${d:-$([ -x ../builder ] && (cd ..; pwd))};\
-    d=${d:-$([ -x builder ] && pwd)};\
+    d=${d:-$([ -x ../builder -a ! -d ../builder ] && (cd ..; pwd))};\
+    d=${d:-$([ -x builder -a ! -d builder ] && pwd)};\
     echo ${d:-$HOME/rpm};\
 )}%_topdir
 
This page took 0.104777 seconds and 4 git commands to generate.