[packages/rpm-build-tools] Don't create links for tools if directory does not exist

draenog draenog at pld-linux.org
Sat Aug 4 18:38:41 CEST 2012


commit ac7a79f3c4034c7b2de7ec36ab778dfafeaa588d
Author: Kacper Kornet <draenog at pld-linux.org>
Date:   Sat Aug 4 17:36:00 2012 +0100

    Don't create links for tools if directory does not exist

 builder.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/builder.sh b/builder.sh
index c36749f..35b070e 100755
--- a/builder.sh
+++ b/builder.sh
@@ -908,7 +908,7 @@ get_spec() {
 		fi
 
 		# create symlinks for tools
-		if [ "$SYMLINK_TOOLS" != "no" ]; then
+		if [ "$SYMLINK_TOOLS" != "no" -a -d "$ASSUMED_NAME" ]; then
 			for a in dropin md5 adapter builder {relup,compile,repackage,rsync,pearize}.sh pldnotify.awk; do
 				# skip tools that don't exist in top dir
 				[ -f $a ] || continue


More information about the pld-cvs-commit mailing list