Change default %_tmppath value to %_tmpdir

This commit is contained in:
Дмитрий Левин 2012-12-22 17:07:17 +00:00
parent 120ce7358f
commit a538345515
3 changed files with 3 additions and 3 deletions

View File

@ -169,7 +169,7 @@ static int rpmMkpath(const char * path, mode_t mode, uid_t uid, gid_t gid)
int makeTempFile(const char * prefix, const char ** fnptr, FD_t * fdptr)
{
const char * tpmacro = "%{?_tmppath:%{_tmppath}}%{!?_tmppath:/var/tmp}";
const char * tpmacro = "%{?_tmppath:%{_tmppath}}%{!?_tmppath:%{_tmpdir}}";
const char * tempfn = NULL;
const char * tfn = NULL;
static int _initialized = 0;

View File

@ -510,7 +510,7 @@ static void rpmSetDefaults(void)
setVar ("_preScriptEnvironment", prescriptenviron);
setVar ("_topdir", "%{_usr}/src/RPM");
setVar ("_tmppath", "%{_var}/tmp");
setVar ("_tmppath", "%{_tmpdir}");
setVar ("_dbpath", "%{_var}/lib/rpm");
setVar ("_defaultdocdir", "%{_usr}/share/doc");

View File

@ -164,7 +164,7 @@
%_srcrpmdir %{_topdir}/SRPMS
# Directory where temporaray files can be created.
%_tmppath %{_var}/tmp
%_tmppath %{_tmpdir}
# Path to top of build area.
%_topdir %{_usrsrc}/RPM