]> git.pld-linux.org Git - packages/rpm-pld-macros.git/commitdiff
- version 1.747: support for filenames with spaces in shebang checks auto/th/rpm-pld-macros-1.747-1
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 16 Apr 2020 19:33:39 +0000 (21:33 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Thu, 16 Apr 2020 19:33:39 +0000 (21:33 +0200)
macros.pld
rpm-pld-macros.spec

index ffc1494f8f8700950c10b67cc1b45e2bd5e67426..e029dc266ca6a63abc9e4c73b2093d6583797021 100644 (file)
@@ -807,9 +807,9 @@ __spec_install_post_check_tmpfiles() { \
 %__spec_install_post_check_shebangs { \
 __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 \
+       fail=` \
+       find $RPM_BUILD_ROOT -type f -perm -500 -print | { fail=0; while IFS= read -r f; do \
                shebang="$(sed -e'1s/#! *\(.*\)/\1/;t;d;q' "$f")" ; \
                f="${f##$RPM_BUILD_ROOT}"; \
                case "$shebang" in \
@@ -828,6 +828,8 @@ __spec_install_post_check_shebangs() { \
                        *) ;;\
                esac ; \
        done ; \
+       echo "$fail" ; \
+       }`; \
        echo " DONE" ; \
         %{!?no_install_post_check_shebangs:return $fail;} \
 }; __spec_install_post_check_shebangs }}
index ade5e12bd447eb4fe148225d0749459dcbe66307..c21a3475408d3ccc0d94c25b36f5bb585e478c18 100644 (file)
@@ -1,4 +1,4 @@
-%define                rpm_macros_rev  1.746
+%define                rpm_macros_rev  1.747
 %define                find_lang_rev   1.40
 # split into individual X_prov_ver if there is a reason to desync
 %define                prov_ver        4.15
This page took 0.176767 seconds and 4 git commands to generate.