[paketler-commits] r37746 - in playground/cartman/python: . files
paketler-commits at pardus.org.tr
paketler-commits at pardus.org.tr
31 Ara 2007 Pzt 22:58:15 EET
Author: cartman
Date: Mon Dec 31 22:58:14 2007
New Revision: 37746
Modified:
playground/cartman/python/files/tarfile-longfilename-fix.patch
playground/cartman/python/pspec.xml
Log:
apply tar patches
Modified: playground/cartman/python/files/tarfile-longfilename-fix.patch
=================================================================
--- playground/cartman/python/files/tarfile-longfilename-fix.patch (original)
+++ playground/cartman/python/files/tarfile-longfilename-fix.patch Mon Dec 31 22:58:14 2007
@@ -1,21 +1,23 @@
---- Lib/tarfile.py 2006-06-21 14:33:19.000000000 +0300
-+++ Lib/tarfile.py 2006-06-21 14:33:59.000000000 +0300
-@@ -688,11 +688,6 @@
- tarinfo.devmajor = tarinfo.devmajor = 0
- tarinfo.prefix = buf[345:500]
+Index: Lib/tarfile.py
+===================================================================
+--- Lib/tarfile.py (revision 59634)
++++ Lib/tarfile.py (working copy)
+@@ -1836,11 +1836,6 @@
+ return None
+ break
- # Some old tar programs represent a directory as a regular
- # file with a trailing slash.
- if tarinfo.isreg() and tarinfo.name.endswith("/"):
- tarinfo.type = DIRTYPE
-
- # The prefix field is used for filenames > 100 in
- # the POSIX standard.
- # name = prefix + '/' + name
-@@ -1630,6 +1625,11 @@
- if tarinfo.type in self.TYPE_METH:
- return self.TYPE_METH[tarinfo.type](self, tarinfo)
-
+ # Directory names should have a '/' at the end.
+ if tarinfo.isdir() and not tarinfo.name.endswith("/"):
+ tarinfo.name += "/"
+@@ -1875,6 +1870,11 @@
+ """Process a builtin type member or an unknown member
+ which will be treated as a regular file.
+ """
+ # Some old tar programs represent a directory as a regular
+ # file with a trailing slash.
+ if tarinfo.isreg() and tarinfo.name.endswith("/"):
Modified: playground/cartman/python/pspec.xml
=================================================================
--- playground/cartman/python/pspec.xml (original)
+++ playground/cartman/python/pspec.xml Mon Dec 31 22:58:14 2007
@@ -27,6 +27,10 @@
<!-- Don't create pyc files on installation -->
<Patch>no-pyc.patch</Patch>
+
+ <!-- tarfile fixes by Faiksan -->
+ <Patch>tarfile-longfilename-fix.patch</Patch>
+ <Patch>tarfile-umask.patch</Patch>
</Patches>
</Source>
Paketler-commits mesaj listesiyle ilgili
daha fazla bilgi