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
This commit is contained in:
parent
98d1974f20
commit
f40ecfaa06
@ -10,8 +10,8 @@ fi
|
|||||||
find "$RPM_BUILD_ROOT" -type f -name "*.pyc" | while read pyc ; do
|
find "$RPM_BUILD_ROOT" -type f -name "*.pyc" | while read pyc ; do
|
||||||
pyo="$(echo $pyc | sed -e 's/.pyc$/.pyo/')"
|
pyo="$(echo $pyc | sed -e 's/.pyc$/.pyo/')"
|
||||||
if [ -f "$pyo" ] ; then
|
if [ -f "$pyo" ] ; then
|
||||||
csha="$(sha1sum -b $pyc | cut -d' ' -f 1)" && \
|
csha="$(sha1sum -b "$pyc" | cut -d' ' -f 1)" && \
|
||||||
osha="$(sha1sum -b $pyo | cut -d' ' -f 1)" && \
|
osha="$(sha1sum -b "$pyo" | cut -d' ' -f 1)" && \
|
||||||
if [ "$csha" = "$osha" ] ; then
|
if [ "$csha" = "$osha" ] ; then
|
||||||
ln -f "$pyc" "$pyo"
|
ln -f "$pyc" "$pyo"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user