packages: builder - kill few bashisms

glen glen at pld-linux.org
Sun Aug 22 14:01:41 CEST 2010


Author: glen                         Date: Sun Aug 22 12:01:42 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- kill few bashisms

---- Files affected:
packages:
   builder (1.628 -> 1.629) 

---- Diffs:

================================================================
Index: packages/builder
diff -u packages/builder:1.628 packages/builder:1.629
--- packages/builder:1.628	Fri Aug 20 18:51:41 2010
+++ packages/builder	Sun Aug 22 14:01:34 2010
@@ -748,7 +748,7 @@
 			cvsignore_df .cvsignore
 
 			# add default log format to .cvsignore if it is relative
-			if [ "$LOGFILE" == $(basename "$LOGFILE") ]; then
+			if [ "$LOGFILE" = $(basename "$LOGFILE") ]; then
 				# substitute known "macros" to glob
 				local logfile=$(echo "$LOGFILE" | sed -e 's,\$\(PACKAGE_NAME\|DATE\),*,g')
 				if [ "$logfile" ]; then
@@ -1707,15 +1707,15 @@
 	update_shell_title "spawn_sub_builder $package_name"
 
 	sub_builder_opts=''
-	if [ "${FETCH_BUILD_REQUIRES}" == "yes" ]; then
+	if [ "${FETCH_BUILD_REQUIRES}" = "yes" ]; then
 		sub_builder_opts="${sub_builder_opts} -R"
 	fi
-	if [ "${REMOVE_BUILD_REQUIRES}" == "nice" ]; then
+	if [ "${REMOVE_BUILD_REQUIRES}" = "nice" ]; then
 		sub_builder_opts="${sub_builder_opts} -RB"
-	elif [ "${REMOVE_BUILD_REQUIRES}" == "force" ]; then
+	elif [ "${REMOVE_BUILD_REQUIRES}" = "force" ]; then
 		sub_builder_opts="${sub_builder_opts} -FRB"
 	fi
-	if [ "${UPDATE_POLDEK_INDEXES}" == "yes" ]; then
+	if [ "${UPDATE_POLDEK_INDEXES}" = "yes" ]; then
 		sub_builder_opts="${sub_builder_opts} -Upi"
 	fi
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/builder?r1=1.628&r2=1.629&f=u



More information about the pld-cvs-commit mailing list