diff options
author | Ralf Corsépius <corsepiu@fedoraproject.org> | 2007-08-31 08:54:41 +0200 |
---|---|---|
committer | Ralf Corsépius <corsepiu@fedoraproject.org> | 2007-08-31 08:54:41 +0200 |
commit | c153627e370b21c5d2dc143b6dbc610bb7a01087 (patch) | |
tree | cbf23d838e2bc20096be614e9a83778ff89abe06 /lib | |
parent | 7e2924132655a0efbca983853b20418bc3c22240 (diff) | |
download | librpm-tizen-c153627e370b21c5d2dc143b6dbc610bb7a01087.tar.gz librpm-tizen-c153627e370b21c5d2dc143b6dbc610bb7a01087.tar.bz2 librpm-tizen-c153627e370b21c5d2dc143b6dbc610bb7a01087.zip |
Use LOCALSTATEDIR instead of hard-coded /var.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rpmrc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rpmrc.c b/lib/rpmrc.c index 2c6777f20..f26734215 100644 --- a/lib/rpmrc.c +++ b/lib/rpmrc.c @@ -535,16 +535,16 @@ static void setDefaults(void) { addMacro(NULL, "_usr", NULL, "/usr", RMIL_DEFAULT); - addMacro(NULL, "_var", NULL, "/var", RMIL_DEFAULT); + addMacro(NULL, "_var", NULL, LOCALSTATEDIR, RMIL_DEFAULT); addMacro(NULL, "_preScriptEnvironment",NULL, prescriptenviron,RMIL_DEFAULT); setVarDefault(-1, "_topdir", "/usr/src/redhat", "%{_usr}/src/redhat"); setVarDefault(-1, "_tmppath", - "/var/tmp", "%{_var}/tmp"); + LOCALSTATEDIR "/tmp", "%{_var}/tmp"); setVarDefault(-1, "_dbpath", - "/var/lib/rpm", "%{_var}/lib/rpm"); + LOCALSTATEDIR "/lib/rpm", "%{_var}/lib/rpm"); setVarDefault(-1, "_defaultdocdir", "/usr/doc", "%{_usr}/doc"); |