diff options
-rw-r--r-- | lib/psm.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -231,6 +231,7 @@ rpmRC rpmInstallSourcePackage(rpmts ts, FD_t fd, { int scareMem = 1; rpmfi fi = NULL; + char * _topdir = NULL; char * _sourcedir = NULL; char * _specdir = NULL; char * specFile = NULL; @@ -335,6 +336,13 @@ rpmRC rpmInstallSourcePackage(rpmts ts, FD_t fd, } } + _topdir = rpmGenPath(rpmtsRootDir(ts), "%{_topdir}", ""); + rpmrc = rpmMkdirPath(_topdir, "_topdir"); + if (rpmrc) { + rpmrc = RPMRC_FAIL; + goto exit; + } + _sourcedir = rpmGenPath(rpmtsRootDir(ts), "%{_sourcedir}", ""); rpmrc = rpmMkdirPath(_sourcedir, "_sourcedir"); if (rpmrc) { |