This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tarek
Recipients lars.gustaebel, tarek
Date 2009-09-07.07:47:28
SpamBayes Score 0.0007698799
Marked as misclassified No
Message-id <1252309650.71.0.647505417979.issue6856@psf.upfronthosting.co.za>
In-reply-to
Content
I am proposing this feature for an issue we have in Distutils: being
able to set the uid/gid of files added in a tar archive using tarfile.

Here's what I am proposing:

- adding two methods to TarInfo: set_uid and set_gid, that are able to
take a user and group name *or* a uid and gid number

- adding in TarFile a new filter option to add() called include. If
given, it's a callable that receives the tarinfo object right before
it's added, so its uid/gid can be tweaked. This callable must return the
object. If it returns None, the object is not added to the tar file.
History
Date User Action Args
2009-09-07 07:47:31tareksetrecipients: + tarek, lars.gustaebel
2009-09-07 07:47:30tareksetmessageid: <1252309650.71.0.647505417979.issue6856@psf.upfronthosting.co.za>
2009-09-07 07:47:29tareklinkissue6856 messages
2009-09-07 07:47:28tarekcreate