commit:     84bf8d7ad50f46d8724b3c4232e387b506cf9a7a
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 13 00:41:41 2017 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Sun Aug 13 00:43:40 2017 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=84bf8d7a

setup.py: x_sdist default root owner for archive files

 setup.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index e47eb7390..e9b01d92b 100755
--- a/setup.py
+++ b/setup.py
@@ -528,11 +528,15 @@ class x_install_scripts(install_scripts):
 
 
 class x_sdist(sdist):
-       """ sdist defaulting to .tar.bz2 format """
+       """ sdist defaulting to .tar.bz2 format, and archive files owned by 
root """
 
        def finalize_options(self):
                if self.formats is None:
                        self.formats = ['bztar']
+               if self.owner is None:
+                       self.owner = 'root'
+               if self.group is None:
+                       self.group = 'root'
 
                sdist.finalize_options(self)
 

Reply via email to