[Python-checkins] python/dist/src/Lib tarfile.py,1.15,1.16

loewis at users.sourceforge.net loewis at users.sourceforge.net
Wed Aug 18 15:57:46 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15057/Lib

Modified Files:
	tarfile.py 
Log Message:
Patch #995126: Correct directory size, and generate GNU tarfiles by default.


Index: tarfile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/tarfile.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** tarfile.py	20 Jul 2004 22:31:34 -0000	1.15
--- tarfile.py	18 Aug 2004 13:57:44 -0000	1.16
***************
*** 782,786 ****
                                  # are passed to the caller as exceptions.
  
!     posix = True                # If True, generates POSIX.1-1990-compliant
                                  # archives (no GNU extensions!)
  
--- 782,786 ----
                                  # are passed to the caller as exceptions.
  
!     posix = False               # If True, generates POSIX.1-1990-compliant
                                  # archives (no GNU extensions!)
  
***************
*** 1138,1142 ****
          tarinfo.uid   = statres.st_uid
          tarinfo.gid   = statres.st_gid
!         tarinfo.size  = statres.st_size
          tarinfo.mtime = statres.st_mtime
          tarinfo.type  = type
--- 1138,1142 ----
          tarinfo.uid   = statres.st_uid
          tarinfo.gid   = statres.st_gid
!         tarinfo.size  = not stat.S_ISDIR(stmd) and statres.st_size or 0
          tarinfo.mtime = statres.st_mtime
          tarinfo.type  = type



More information about the Python-checkins mailing list