Author: Armin Rigo <[email protected]>
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:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit