Michael Schröder
444a43896d
OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=196
14 lines
657 B
Diff
14 lines
657 B
Diff
--- scripts/brp-python-hardlink.orig 2012-04-18 13:33:39.000000000 +0000
|
|
+++ scripts/brp-python-hardlink 2012-04-18 13:34:52.000000000 +0000
|
|
@@ -10,8 +10,8 @@ fi
|
|
find "$RPM_BUILD_ROOT" -type f -name "*.pyc" | while read pyc ; do
|
|
pyo="${pyc%c}o"
|
|
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
|