Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 126405 Details for
Bug 185305
quickpkg builds corrupted binpackages in portage version 2.1.3_rc*
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to tarfile.py from python upstream bug 1168594
bugfix-1167128.patch (text/plain), 1.79 KB, created by
Zac Medico
on 2007-07-30 01:50:25 UTC
(
hide
)
Description:
patch to tarfile.py from python upstream bug 1168594
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2007-07-30 01:50:25 UTC
Size:
1.79 KB
patch
obsolete
>Index: tarfile.py >=================================================================== >RCS file: /cvsroot/python/python/dist/src/Lib/tarfile.py,v >retrieving revision 1.27 >diff -u -r1.27 tarfile.py >--- tarfile.py 5 Mar 2005 12:47:42 -0000 1.27 >+++ tarfile.py 22 Mar 2005 18:47:11 -0000 >@@ -1179,17 +1179,16 @@ > > # Fill the TarInfo object with all > # information we can get. >- tarinfo.name = arcname >- tarinfo.mode = stmd >- tarinfo.uid = statres.st_uid >- tarinfo.gid = statres.st_gid >- if stat.S_ISDIR(stmd): >- # For a directory, the size must be 0 >- tarinfo.size = 0 >- else: >+ tarinfo.name = arcname >+ tarinfo.mode = stmd >+ tarinfo.uid = statres.st_uid >+ tarinfo.gid = statres.st_gid >+ if stat.S_ISREG(stmd): > tarinfo.size = statres.st_size >+ else: >+ tarinfo.size = 0L > tarinfo.mtime = statres.st_mtime >- tarinfo.type = type >+ tarinfo.type = type > tarinfo.linkname = linkname > if pwd: > try: >@@ -1280,16 +1279,15 @@ > self.addfile(tarinfo, f) > f.close() > >- if tarinfo.type in (LNKTYPE, SYMTYPE, FIFOTYPE, CHRTYPE, BLKTYPE): >- tarinfo.size = 0L >- self.addfile(tarinfo) >- >- if tarinfo.isdir(): >+ elif tarinfo.isdir(): > self.addfile(tarinfo) > if recursive: > for f in os.listdir(name): > self.add(os.path.join(name, f), os.path.join(arcname, f)) > >+ else: >+ self.addfile(tarinfo) >+ > def addfile(self, tarinfo, fileobj=None): > """Add the TarInfo object `tarinfo' to the archive. If `fileobj' is > given, tarinfo.size bytes are read from it and added to the archive.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 185305
:
126405
|
126501