]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- skip apostrophes in _noautoreq
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 19 Aug 2010 13:06:14 +0000 (13:06 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    pearize.sh -> 1.45

pearize.sh

index 2d8ad944adbbbaadd8a7de5a0e02aa6a49e168b1..12d80f97475e88c0dd35b498b37e1cf43bb084da 100644 (file)
@@ -128,6 +128,9 @@ optional=$(grep '^Optional:' $template || :)
 if [ -n "$optional" ]; then
        echo "$optional" | while read tag dep; do
                for req in $dep; do
+                       # strip single quotes that default template includes in @optional@ expand
+                       # TODO: remove in php-pear-PEAR_Command_Packaging package
+                       req=${req#\'} req=${req%\'}
                        m=$(grep "^%define.*_noautoreq" $spec || :)
                        if [ -z "$m" ]; then
                                sed -i -e "/^BuildRoot:/{
This page took 0.039527 seconds and 4 git commands to generate.