packages: pearize.sh - handle suggests filling

glen glen at pld-linux.org
Sat Aug 21 13:19:28 CEST 2010


Author: glen                         Date: Sat Aug 21 11:19:28 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- handle suggests filling

---- Files affected:
packages:
   pearize.sh (1.53 -> 1.54) 

---- Diffs:

================================================================
Index: packages/pearize.sh
diff -u packages/pearize.sh:1.53 packages/pearize.sh:1.54
--- packages/pearize.sh:1.53	Sat Aug 21 13:06:54 2010
+++ packages/pearize.sh	Sat Aug 21 13:19:23 2010
@@ -135,6 +135,11 @@
 optional=$(grep '^Suggests:' $template || :)
 if [ -n "$optional" ]; then
 	echo "$optional" | while read tag dep; do
+		dep=$(add_epoch $dep)
+		if ! grep -q "^Suggests:.*$dep" $preamble; then
+			sed -i -e "/^BuildRoot/iSuggests:\t$dep" $spec
+		fi
+
 		for req in $dep; do
 			case "$req" in
 			php-pear-*)
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/pearize.sh?r1=1.53&r2=1.54&f=u



More information about the pld-cvs-commit mailing list