SOURCES: rpm.macros - err, with expression

glen glen at pld-linux.org
Sat Oct 4 22:26:49 CEST 2008


Author: glen                         Date: Sat Oct  4 20:26:49 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- err, with expression

---- Files affected:
SOURCES:
   rpm.macros (1.481 -> 1.482) 

---- Diffs:

================================================================
Index: SOURCES/rpm.macros
diff -u SOURCES/rpm.macros:1.481 SOURCES/rpm.macros:1.482
--- SOURCES/rpm.macros:1.481	Sat Oct  4 22:25:57 2008
+++ SOURCES/rpm.macros	Sat Oct  4 22:26:43 2008
@@ -58,7 +58,7 @@
 
 %_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\
 	&& RPM_BUILD_NCPUS=$(/usr/bin/getconf _NPROCESSORS_ONLN); \\\
-	[ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS * 2")
+	[ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$(($RPM_BUILD_NCPUS * 2))")
 
 #-----------------------------------------------------------------
 #
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/rpm.macros?r1=1.481&r2=1.482&f=u



More information about the pld-cvs-commit mailing list