summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2012-04-23 15:35:29 +0300
committerPanu Matilainen <pmatilai@redhat.com>2012-04-23 15:35:29 +0300
commit94eefb112875cb46501faff5752226f2346e0c62 (patch)
tree8c62a26fa886714d7d0a711e14e9dfbb91e7bb37 /scripts
parent0920d3339b706049d26e8cc18d8bf966616c2f32 (diff)
downloadlibrpm-tizen-94eefb112875cb46501faff5752226f2346e0c62.tar.gz
librpm-tizen-94eefb112875cb46501faff5752226f2346e0c62.tar.bz2
librpm-tizen-94eefb112875cb46501faff5752226f2346e0c62.zip
Fix quoting in brp-python-hardlink (patch from Jon Nelson)
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/brp-python-hardlink4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/brp-python-hardlink b/scripts/brp-python-hardlink
index 5453866eb..f88719982 100755
--- a/scripts/brp-python-hardlink
+++ b/scripts/brp-python-hardlink
@@ -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