]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- handle suggests filling
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 21 Aug 2010 11:19:23 +0000 (11:19 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    pearize.sh -> 1.54

pearize.sh

index 25800744ee09826deb7048e707ea3d43250db531..58a38b24ab3e187fa06011aaa68c7ce976fe66a0 100644 (file)
@@ -135,6 +135,11 @@ fi
 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-*)
This page took 0.036884 seconds and 4 git commands to generate.