Blame SOURCES/redhat-rpm-config-9.1.0-python-hardlink-spaces-in-filenames.patch

76c1b9
diff --git a/brp-python-hardlink b/brp-python-hardlink
76c1b9
index a937529..210d69c 100755
76c1b9
--- a/brp-python-hardlink
76c1b9
+++ b/brp-python-hardlink
76c1b9
@@ -10,8 +10,8 @@ fi
76c1b9
 find "$RPM_BUILD_ROOT" -type f -name "*.pyc" | while read pyc ; do
76c1b9
        pyo="$(echo $pyc | sed -e 's/.pyc$/.pyo/')"
76c1b9
        if [ -f "$pyo" ] ; then
76c1b9
-               csha="$(sha1sum -b $pyc | cut -d' ' -f 1)" && \
76c1b9
-               osha="$(sha1sum -b $pyo | cut -d' ' -f 1)" && \
76c1b9
+               csha="$(sha1sum -b "$pyc" | cut -d' ' -f 1)" && \
76c1b9
+               osha="$(sha1sum -b "$pyo" | cut -d' ' -f 1)" && \
76c1b9
                if [ "$csha" = "$osha" ] ; then
76c1b9
                        ln -f "$pyc" "$pyo"
76c1b9
                fi