summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael E Brown <mebrown@michaels-house.net>2007-12-19 16:48:45 -0600
committerMichael E Brown <mebrown@michaels-house.net>2007-12-19 16:50:43 -0600
commit7a89b9314d52b4b13fadce422ebbfb95cfb222a7 (patch)
tree81c7471156ef498e255f45a579936b8a4d8d0ab1
parent32cbdd2d00964cd7adb74de63b047a2cf7f3b5c5 (diff)
Run rpmbuild in a login shell in the chroot.
-rw-r--r--py/mock/backend.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/mock/backend.py b/py/mock/backend.py
index 80b223f..9b5fba9 100644
--- a/py/mock/backend.py
+++ b/py/mock/backend.py
@@ -388,7 +388,7 @@ class Root(object):
chrootspec = spec.replace(self.makeChrootPath(), '') # get rid of rootdir prefix
# Completely/Permanently drop privs while running the following:
self.doChroot(
- "rpmbuild -bs --target %s --nodeps %s" % (self.target_arch, chrootspec),
+ "bash -l -c 'rpmbuild -bs --target %s --nodeps %s'" % (self.target_arch, chrootspec),
logger=self.build_log, timeout=timeout,
uidManager=self.uidManager,
uid=self.chrootuid,
@@ -409,7 +409,7 @@ class Root(object):
self._callHooks('prebuild')
self.doChroot(
- "rpmbuild -bb --target %s --nodeps %s" % (self.target_arch, chrootspec),
+ "bash -l -c 'rpmbuild -bb --target %s --nodeps %s'" % (self.target_arch, chrootspec),
logger=self.build_log, timeout=timeout,
uidManager=self.uidManager,
uid=self.chrootuid,