commit:     f45b4973d64f6b8154eaa3a6b4b0b900ac33f1ce
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 14 04:45:20 2017 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Tue Nov 14 04:49:21 2017 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=f45b4973

repoman/setup.py: x_sdist default root owner for archive files

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

diff --git a/repoman/setup.py b/repoman/setup.py
index 9c4def929..eead1e299 100755
--- a/repoman/setup.py
+++ b/repoman/setup.py
@@ -339,11 +339,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