]> git.pld-linux.org Git - packages/rpm-build-macros.git/commitdiff
fix __spec_install_post_check_shebangs for spaces auto/th/rpm-build-macros-1.716-1
authorJacek Konieczny <j.konieczny@eggsoft.pl>
Tue, 26 Apr 2016 13:13:59 +0000 (15:13 +0200)
committerJacek Konieczny <j.konieczny@eggsoft.pl>
Tue, 26 Apr 2016 13:15:13 +0000 (15:15 +0200)
Paths with spaces would cause the macro to fail.

Version: 1.716

rpm-build-macros.spec
rpm.macros

index 204dd44b95428e2d93b66f00f8abdc03bce20671..72331d488ac5ec8716cdb2ed14936d2cc05ecc9e 100644 (file)
@@ -1,4 +1,4 @@
-%define                rpm_macros_rev  1.715
+%define                rpm_macros_rev  1.716
 %define                find_lang_rev   1.38
 Summary:       PLD Linux RPM build macros
 Summary(pl.UTF-8):     Makra do budowania pakietów RPM dla Linuksa PLD
index 93a955d03bf5ee68cbc7ffa54d8954ee863a239c..1c07df41438e923337309c0fde441c30f4326261 100644 (file)
@@ -738,9 +738,10 @@ __spec_install_post_check_shebangs() { \
 %{!?debug:set +x;} \
        fail=0; \
        echo "Checking script shebangs..."; \
-       for f in $(find $RPM_BUILD_ROOT -type f -perm -500 -print) ; do \
-               shebang=$(sed -e'1s/#! *\(.*\)/\1/;t;d;q' "$f") ; \
-               f=${f##$RPM_BUILD_ROOT}; \
+       find $RPM_BUILD_ROOT -type f -perm -500 -print | \
+       while read f ; do \
+               shebang="$(sed -e'1s/#! *\(.*\)/\1/;t;d;q' "$f")" ; \
+               f="${f##$RPM_BUILD_ROOT}"; \
                case "$shebang" in \
                        "%{__python}"|"%{__python3}"|"%{__python} "*|"%{__python3} "* \
                        |"/usr/bin/python%{py_ver}"|"/usr/bin/python%{py_ver} "* \
This page took 0.041406 seconds and 4 git commands to generate.