]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- use patterns for noautreqdep, there could be more precise exclude in spec
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 15 Oct 2005 13:55:56 +0000 (13:55 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    pearize.sh -> 1.27

pearize.sh

index 4cb3f1868899a6ec492e716bca0b8ef05673c644..843d8b3dc1202530e15afef86cc31c6b219b6484 100644 (file)
@@ -105,9 +105,9 @@ optional=$(grep '^Optional:' $template || :)
 if [ -n "$optional" ]; then
        echo "$optional" | while read tag dep; do
                for req in $dep; do
-                       m=$(grep "^%define.*_noautoreq" $spec | fgrep -o "$req" || :)
+                       m=$(grep "^%define.*_noautoreq" $spec | grep -o "$req" || :)
                        if [ -z "$m" ]; then
-                               sed -i -e "/^%define.*_noautoreq/s/$/ $req/" $spec
+                               sed -i -e "/^%define.*_noautoreq/s,$, $req," $spec
                        fi
                done
        done
This page took 0.033886 seconds and 4 git commands to generate.