[Rpm-maint] [PATCH] Expand $HOME by hand in the default for %_topdir

Panu Matilainen pmatilai at redhat.com
Fri Jan 16 07:15:43 UTC 2009


On Tue, 13 Jan 2009, Adam Jackson wrote:

> From: Adam Jackson <ajax at redhat.com>
>
> Doing it as %(echo $HOME) means you'll fork a subshell every time you
> need the value of %_topdir, which is just wasteful.

True... thanks for the patch, but instead of hardwiring special logic 
about HOME I added a getenv macro - avoids the subshell and may be 
beneficial for other uses too:
http://rpm.org/gitweb?p=rpm.git;a=commitdiff;h=947ad7acb3e237446f0e20c0009e9ae07e0f26dc

 	- Panu -


More information about the Rpm-maint mailing list