to fix spaces in files and directories that are fed to the
brp-python-hardlink script
This commit is contained in:
Toshio Kuratomi 2012-10-03 10:17:07 -07:00 committed by Ville Skyttä
parent 98d1974f20
commit f40ecfaa06
1 changed files with 2 additions and 2 deletions

View File

@ -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