You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
681 B
16 lines
681 B
6 years ago
|
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
|