1 |
commit: 84bf8d7ad50f46d8724b3c4232e387b506cf9a7a |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Aug 13 00:41:41 2017 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 13 00:43:40 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=84bf8d7a |
7 |
|
8 |
setup.py: x_sdist default root owner for archive files |
9 |
|
10 |
setup.py | 6 +++++- |
11 |
1 file changed, 5 insertions(+), 1 deletion(-) |
12 |
|
13 |
diff --git a/setup.py b/setup.py |
14 |
index e47eb7390..e9b01d92b 100755 |
15 |
--- a/setup.py |
16 |
+++ b/setup.py |
17 |
@@ -528,11 +528,15 @@ class x_install_scripts(install_scripts): |
18 |
|
19 |
|
20 |
class x_sdist(sdist): |
21 |
- """ sdist defaulting to .tar.bz2 format """ |
22 |
+ """ sdist defaulting to .tar.bz2 format, and archive files owned by root """ |
23 |
|
24 |
def finalize_options(self): |
25 |
if self.formats is None: |
26 |
self.formats = ['bztar'] |
27 |
+ if self.owner is None: |
28 |
+ self.owner = 'root' |
29 |
+ if self.group is None: |
30 |
+ self.group = 'root' |
31 |
|
32 |
sdist.finalize_options(self) |