[issue11899] TarFile.gettarinfo modifies self.inodes

2011-04-23 Thread Michael Gold
Michael Gold mg...@ncf.ca added the comment: No, I don't have a working implementation. (I basically reimplemented TarFile.inodes to work around this; I was using TarFile.dereference, so I already had to do the hard-linking manually.) -- nosy: +mgold

[issue11899] TarFile.gettarinfo modifies self.inodes

2011-04-22 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de added the comment: Good point. Do you happen to have a working implementation already? -- assignee: - lars.gustaebel priority: normal - low versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue11899] TarFile.gettarinfo modifies self.inodes

2011-04-21 Thread Michael Gold
New submission from Michael Gold mg...@qnx.com: When I call tar.gettarinfo (where tar is a TarFile instance), the inode information is inserted into tar.inodes. If I later call tar.gettarinfo on a linked file, the returned TarInfo will have type LNKTYPE. I think it's incorrect to store this

[issue11899] TarFile.gettarinfo modifies self.inodes

2011-04-21 Thread Michael Gold
Michael Gold mg...@qnx.com added the comment: Actually, TarFile should also have a separate method to take a TarInfo instance and modify its type to LNKTYPE if applicable. gettarinfo can call that. This way the user can use a TarInfo object created before any files are added, and can easily