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-02-05 01:24:12 +0100
commit67cb4cd783f2ac7dd78801b495d73bbeafd4462e (patch)
treee5cfe08e350fef62c2777ee3d7227d0c19ffcf2d
parent267d1e8d17b1845d311c401cfcff13da25643005 (diff)
downloadfedora-packager-67cb4cd783f2ac7dd78801b495d73bbeafd4462e.tar.gz
fedora-packager-67cb4cd783f2ac7dd78801b495d73bbeafd4462e.tar.xz
fedora-packager-67cb4cd783f2ac7dd78801b495d73bbeafd4462e.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 510cfe7..78e2b2e 100644
--- a/src/pyfedpkg/__init__.py
+++ b/src/pyfedpkg/__init__.py
@@ -1747,7 +1747,7 @@ class PackageModule:
pipe= ['xargs', '-0', 'chmod', 'a+r'],
shell=False)
- cmd = ['rpmbuild']
+ cmd = ['fakeroot', 'rpmbuild']
cmd.extend(self.rpmdefines)
# Figure out which hashtype to use, if not provided one