From f40ecfaa0644f1faf5d0a5d2285fc6e1dfa8ab82 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Wed, 3 Oct 2012 10:17:07 -0700 Subject: [PATCH] Add patch from https://bugzilla.redhat.com/show_bug.cgi?id=783433 to fix spaces in files and directories that are fed to the brp-python-hardlink script --- brp-python-hardlink | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/brp-python-hardlink b/brp-python-hardlink index a937529..210d69c 100755 --- a/brp-python-hardlink +++ b/brp-python-hardlink @@ -10,8 +10,8 @@ fi find "$RPM_BUILD_ROOT" -type f -name "*.pyc" | while read pyc ; do pyo="$(echo $pyc | sed -e 's/.pyc$/.pyo/')" if [ -f "$pyo" ] ; then - csha="$(sha1sum -b $pyc | cut -d' ' -f 1)" && \ - osha="$(sha1sum -b $pyo | cut -d' ' -f 1)" && \ + csha="$(sha1sum -b "$pyc" | cut -d' ' -f 1)" && \ + osha="$(sha1sum -b "$pyo" | cut -d' ' -f 1)" && \ if [ "$csha" = "$osha" ] ; then ln -f "$pyc" "$pyo" fi