summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2011-01-21 15:47:34 +0100
committerHans Ulrich Niedermann <hun@n-dimensional.de>2011-01-21 17:09:46 +0100
commitf786d564df7ed99d7a1464d4ba360392fd0bfc84 (patch)
tree3b3e5b0fe062929202a12e0a3fdd2feff1964040
parent0df9afbeb29ea708ad5b4f16551076f1c9d43f56 (diff)
downloadfedora-packager-f786d564df7ed99d7a1464d4ba360392fd0bfc84.tar.gz
fedora-packager-f786d564df7ed99d7a1464d4ba360392fd0bfc84.tar.xz
fedora-packager-f786d564df7ed99d7a1464d4ba360392fd0bfc84.zip
Run SRPM rpmbuild via fakeroot
This avoids unnecessary lookup of non-existing users and the resulting error messages in mock builds.
-rw-r--r--src/pyfedpkg/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pyfedpkg/__init__.py b/src/pyfedpkg/__init__.py
index 52998ee..5c3afcd 100644
--- a/src/pyfedpkg/__init__.py
+++ b/src/pyfedpkg/__init__.py
@@ -1697,7 +1697,7 @@ class PackageModule:
pipe= ['xargs', '-0', 'chmod', 'a+r'],
shell=False)
- cmd = ['rpmbuild']
+ cmd = ['fakeroot', 'rpmbuild']
cmd.extend(self.rpmdefines)
# This may need to get updated if we ever change our checksum default
if not hashtype == 'sha256':