SPECS: repackage.sh - cosmetics, always pass %clean redefine

glen glen at pld-linux.org
Mon Jan 21 01:48:16 CET 2008


Author: glen                         Date: Mon Jan 21 00:48:16 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- cosmetics, always pass %clean redefine

---- Files affected:
SPECS:
   repackage.sh (1.16 -> 1.17) 

---- Diffs:

================================================================
Index: SPECS/repackage.sh
diff -u SPECS/repackage.sh:1.16 SPECS/repackage.sh:1.17
--- SPECS/repackage.sh:1.16	Mon Aug 27 14:33:15 2007
+++ SPECS/repackage.sh	Mon Jan 21 01:48:09 2008
@@ -21,7 +21,14 @@
 
 rpmbuild() {
 	set -x
-	/usr/bin/rpmbuild ${TARGET:+--target $TARGET} $BCONDS --short-circuit --define '_source_payload w9.gzdio' --define 'check exit 0; %{nil}' "$@" || exit
+	/usr/bin/rpmbuild \
+		--define '_source_payload w9.gzdio' \
+		--define 'clean exit 0; %{nil}' \
+		--define 'check exit 0; %{nil}' \
+		${TARGET:+--target $TARGET} \
+		$BCONDS \
+		--short-circuit \
+		"$@" || exit
 }
 
 specfile="${1%.spec}.spec"; shift
@@ -38,4 +45,4 @@
 if [[ *$@* != *-bb* ]]; then
 	rpmbuild -bi "$@"
 fi
-rpmbuild -bb --define 'clean exit 0; %{nil}' "$@"
+rpmbuild -bb "$@"
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/repackage.sh?r1=1.16&r2=1.17&f=u



More information about the pld-cvs-commit mailing list