[pypy-commit] pypy default: Patch issue #2536 (david naylor)
arigo
pypy.commits at gmail.com
Mon Apr 10 04:08:38 EDT 2017
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r91023:4c6aed86d95a
Date: 2017-04-10 10:08 +0200
http://bitbucket.org/pypy/pypy/changeset/4c6aed86d95a/
Log: Patch issue #2536 (david naylor)
bsdtar does allow of overriding of user/group
diff --git a/pypy/tool/release/package.py b/pypy/tool/release/package.py
--- a/pypy/tool/release/package.py
+++ b/pypy/tool/release/package.py
@@ -234,12 +234,14 @@
zf.close()
else:
archive = str(builddir.join(name + '.tar.bz2'))
- if sys.platform == 'darwin' or sys.platform.startswith('freebsd'):
+ if sys.platform == 'darwin':
print >>sys.stderr, """Warning: tar on current platform does not suport overriding the uid and gid
for its contents. The tarball will contain your uid and gid. If you are
building the actual release for the PyPy website, you may want to be
using another platform..."""
e = os.system('tar --numeric-owner -cvjf ' + archive + " " + name)
+ elif sys.platform.startswith('freebsd'):
+ e = os.system('tar --uname=root --gname=wheel -cvjf ' + archive + " " + name)
elif sys.platform == 'cygwin':
e = os.system('tar --owner=Administrator --group=Administrators --numeric-owner -cvjf ' + archive + " " + name)
else:
More information about the pypy-commit
mailing list