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

Panu Matilainen pmatilai at laiskiainen.org
Mon Apr 23 12:38:06 UTC 2012


On 04/20/2012 06:11 PM, Michael Schroeder wrote:
>
> 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

Meh, missed this from 4.10 beta1 (something always falls through the 
cracks...) but applied now, thanks.

	- Panu -


More information about the Rpm-maint mailing list