[Rpm-maint] [PATCH] Support debugsource subpackages

Dmitry V. Levin ldv at altlinux.org
Fri Mar 24 15:31:12 UTC 2017


On Fri, Mar 24, 2017 at 04:15:36PM +0100, Michael Schroeder wrote:
> 
> The attached patch makes rpm create -debugsource subpackages containing
> the debug sources.
[...]
> +if [ -n "$srcout" ]; then
> +  > "$srcout"
> +  if [ -d "${RPM_BUILD_ROOT}/usr/src" ]; then
> +    (cd "${RPM_BUILD_ROOT}/usr"
> +     test ! -d src/debug || find src/debug -mindepth 1 -maxdepth 1
> +    ) | sed 's,^,/usr/,' >> "$srcout"
> +  fi
> +fi
> +

Why do you need two subsequent checks here?  This could be done with
a single [ -d "${RPM_BUILD_ROOT}/usr/src/debug" ] check.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20170324/43db0c76/attachment.asc>


More information about the Rpm-maint mailing list