diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-01-16 09:09:40 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-01-16 09:09:40 +0200 |
commit | 947ad7acb3e237446f0e20c0009e9ae07e0f26dc (patch) | |
tree | 3ef851995681c2437c236315dfbf428fc1b069b9 /lib | |
parent | 91e0004f0bb772e7e6f9f84b8a476b5e5783d97e (diff) | |
download | librpm-tizen-947ad7acb3e237446f0e20c0009e9ae07e0f26dc.tar.gz librpm-tizen-947ad7acb3e237446f0e20c0009e9ae07e0f26dc.tar.bz2 librpm-tizen-947ad7acb3e237446f0e20c0009e9ae07e0f26dc.zip |
Add getenv macro, use instead of $(echo $HOME) for defauls
- inspired by http://lists.rpm.org/pipermail/rpm-maint/2009-January/002332.html
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rpmrc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rpmrc.c b/lib/rpmrc.c index f478a24de..b7fdd2c05 100644 --- a/lib/rpmrc.c +++ b/lib/rpmrc.c @@ -475,7 +475,7 @@ static void setDefaults(void) addMacro(NULL, "_preScriptEnvironment",NULL, prescriptenviron,RMIL_DEFAULT); addMacroDefault("_topdir", - "/usr/src/packages", "%(echo $HOME)/rpmbuild"); + "/usr/src/packages", "%{getenv:HOME}/rpmbuild"); addMacroDefault("_tmppath", LOCALSTATEDIR "/tmp", "%{_var}/tmp"); addMacroDefault("_dbpath", |