[issue6856] allow setting uid and gid when creating tar files

2009-09-12 Thread Lars Gustäbel
Lars Gustäbel added the comment: I applied the patch with some more small fixes to the trunk (r74750) and the py3k branch (r74751). -- resolution: -> accepted status: open -> closed ___ Python tracker

[issue6856] allow setting uid and gid when creating tar files

2009-09-07 Thread Tarek Ziadé
Tarek Ziadé added the comment: > I do not quite see the benefit from the set_* methods. > .. some explanations of the underlying complexity... The only benefit I can see for the set_* method is to hide the underlying complexity you've explained. In Distutils, I'd like to provide a uid and gi

[issue6856] allow setting uid and gid when creating tar files

2009-09-07 Thread Lars Gustäbel
Lars Gustäbel added the comment: I do not quite see the benefit from the set_* methods. Although the attribute access I proposed may be slightly more complicated (because you might need the pwd and grp modules) it offers the most freedom. Let's take the set_uid() method as an example: Its purpos

[issue6856] allow setting uid and gid when creating tar files

2009-09-07 Thread Tarek Ziadé
Tarek Ziadé added the comment: > TarInfo does not need set_uid() or set_gid() methods, > both can be set using the uid and gid attributes. I was thinking about the set_ methods to be able to use "root" (str) instead of "0" (int) for example, like what the tar command seems to allow with --uid

[issue6856] allow setting uid and gid when creating tar files

2009-09-07 Thread Lars Gustäbel
Lars Gustäbel added the comment: TarInfo does not need set_uid() or set_gid() methods, both can be set using the uid and gid attributes. If the list of files to add to the archive is known you can do this: tar = tarfile.open("foo.tar.gz", "w:gz") for filename in filenames: tarinfo = tar.getta

[issue6856] allow setting uid and gid when creating tar files

2009-09-07 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- assignee: -> lars.gustaebel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue6856] allow setting uid and gid when creating tar files

2009-09-07 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- title: allow settong uid and gid when creating tar files -> allow setting uid and gid when creating tar files ___ Python tracker ___ _