summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjcwillia <jcwillia>2007-01-08 17:36:38 +0000
committerjcwillia <jcwillia>2007-01-08 17:36:38 +0000
commit7e7a97002ac61ffe658c3b24934a282ec529e2ca (patch)
tree01373bb2a8a80c124e6781f15b498ae812aeabc9
parent34e299de092d41aafd614987e7a5f809436d8cd3 (diff)
downloadmock-7e7a97002ac61ffe658c3b24934a282ec529e2ca.tar.gz
mock-7e7a97002ac61ffe658c3b24934a282ec529e2ca.tar.xz
mock-7e7a97002ac61ffe658c3b24934a282ec529e2ca.zip
added _rpmlock_path to config[macros] in attempt to fix problems when no /var/lib/rpm on build system
-rw-r--r--mock.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mock.py b/mock.py
index c4ca387..4cc8f68 100644
--- a/mock.py
+++ b/mock.py
@@ -712,6 +712,7 @@ class Root:
macrofile_out = '%s%s/.rpmmacros' % (self.rootdir, self.homedir)
if not os.path.exists(macrofile_out):
rpmmacros = open(macrofile_out, 'w')
+ self.config['macros'] = self.config['macros'] + "\n%%_rpmlock_path %s/var/lib/rpm/__db.000" % self.basedir
rpmmacros.write(self.config['macros'])
rpmmacros.close()