Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
69798eb8
Commit
69798eb8
authored
Jan 19, 2004
by
Brian Lloyd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix mtime overflow
parent
40b51d8d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
lib/python/App/tar.py
lib/python/App/tar.py
+10
-3
No files found.
lib/python/App/tar.py
View file @
69798eb8
...
...
@@ -12,8 +12,8 @@
##############################################################################
__doc__
=
'''Simple module for writing tar files
$Id: tar.py,v 1.
7 2003/11/18 13:16:58 tseaver
Exp $'''
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
$Id: tar.py,v 1.
8 2004/01/19 16:28:08 Brian
Exp $'''
__version__
=
'$Revision: 1.
8
$'
[
11
:
-
2
]
import
sys
,
time
,
zlib
try
:
...
...
@@ -28,7 +28,14 @@ def oct8(i):
def
oct12
(
i
):
i
=
oct
(
i
)
return
'0'
*
(
11
-
len
(
i
))
+
i
+
' '
v
=
'0'
*
(
11
-
len
(
i
))
+
i
+
' '
if
len
(
v
)
>
12
:
left
=
v
[:
-
12
]
for
c
in
left
:
if
c
!=
'0'
:
raise
ValueError
,
'value too large for oct12'
return
v
[
-
12
:]
return
v
def
pad
(
s
,
l
):
ls
=
len
(
s
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment