[Rpm-maint] Trivial patch for brp-python-hardlink

Michael Schroeder mls at suse.de
Fri Apr 20 15:11:24 UTC 2012


Hi,

here's a small patch that fixes quoting in brp-python-hardlink
(credits: Jon Nelson).

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

Cheers,
  Michael.

-- 
Michael Schroeder                                   mls at suse.de
SUSE LINUX Products GmbH,  GF Jeff Hawn, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}


More information about the Rpm-maint mailing list