PyCatFile 0.14.14__tar.gz → 0.14.16__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pycatfile-0.14.14 → pycatfile-0.14.16}/PKG-INFO +1 -1
- {pycatfile-0.14.14 → pycatfile-0.14.16}/PyCatFile.egg-info/PKG-INFO +1 -1
- {pycatfile-0.14.14 → pycatfile-0.14.16}/pycatfile.py +23 -5
- {pycatfile-0.14.14 → pycatfile-0.14.16}/LICENSE +0 -0
- {pycatfile-0.14.14 → pycatfile-0.14.16}/PyCatFile.egg-info/SOURCES.txt +0 -0
- {pycatfile-0.14.14 → pycatfile-0.14.16}/PyCatFile.egg-info/dependency_links.txt +0 -0
- {pycatfile-0.14.14 → pycatfile-0.14.16}/PyCatFile.egg-info/top_level.txt +0 -0
- {pycatfile-0.14.14 → pycatfile-0.14.16}/PyCatFile.egg-info/zip-safe +0 -0
- {pycatfile-0.14.14 → pycatfile-0.14.16}/README.md +0 -0
- {pycatfile-0.14.14 → pycatfile-0.14.16}/catfile.py +0 -0
- {pycatfile-0.14.14 → pycatfile-0.14.16}/neocatfile.py +0 -0
- {pycatfile-0.14.14 → pycatfile-0.14.16}/setup.cfg +0 -0
- {pycatfile-0.14.14 → pycatfile-0.14.16}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PyCatFile
|
|
3
|
-
Version: 0.14.
|
|
3
|
+
Version: 0.14.16
|
|
4
4
|
Summary: A tar like file format name catfile after unix cat command (concatenate files) .
|
|
5
5
|
Home-page: https://github.com/GameMaker2k/PyCatFile
|
|
6
6
|
Download-URL: https://github.com/GameMaker2k/PyCatFile/archive/master.tar.gz
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PyCatFile
|
|
3
|
-
Version: 0.14.
|
|
3
|
+
Version: 0.14.16
|
|
4
4
|
Summary: A tar like file format name catfile after unix cat command (concatenate files) .
|
|
5
5
|
Home-page: https://github.com/GameMaker2k/PyCatFile
|
|
6
6
|
Download-URL: https://github.com/GameMaker2k/PyCatFile/archive/master.tar.gz
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
Copyright 2018-2024 Game Maker 2k - http://intdb.sourceforge.net/
|
|
15
15
|
Copyright 2018-2024 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski
|
|
16
16
|
|
|
17
|
-
$FileInfo: pycatfile.py - Last Update: 12/3/2024 Ver. 0.14.
|
|
17
|
+
$FileInfo: pycatfile.py - Last Update: 12/3/2024 Ver. 0.14.16 RC 1 - Author: cooldude2k $
|
|
18
18
|
'''
|
|
19
19
|
|
|
20
20
|
from __future__ import absolute_import, division, print_function, unicode_literals, generators, with_statement, nested_scopes
|
|
@@ -303,12 +303,12 @@ __file_format_dict__ = {'format_name': __file_format_name__, 'format_magic': __f
|
|
|
303
303
|
'format_delimiter': __file_format_delimiter__, 'format_ver': __file_format_ver__, 'new_style': __use_new_style__, 'use_advanced_list': __use_advanced_list__, 'use_alt_inode': __use_alt_inode__}
|
|
304
304
|
__project__ = __program_name__
|
|
305
305
|
__project_url__ = "https://github.com/GameMaker2k/PyCatFile"
|
|
306
|
-
__version_info__ = (0, 14,
|
|
306
|
+
__version_info__ = (0, 14, 16, "RC 1", 1)
|
|
307
307
|
__version_date_info__ = (2024, 12, 3, "RC 1", 1)
|
|
308
308
|
__version_date__ = str(__version_date_info__[0]) + "." + str(
|
|
309
309
|
__version_date_info__[1]).zfill(2) + "." + str(__version_date_info__[2]).zfill(2)
|
|
310
310
|
__revision__ = __version_info__[3]
|
|
311
|
-
__revision_id__ = "$Id:
|
|
311
|
+
__revision_id__ = "$Id: 5d1d2c600d175bd1d827f6339caa1040307736ca $"
|
|
312
312
|
if(__version_info__[4] is not None):
|
|
313
313
|
__version_date_plusrc__ = __version_date__ + \
|
|
314
314
|
"-" + str(__version_date_info__[4])
|
|
@@ -3504,6 +3504,18 @@ def CompressOpenFile(outfile, compressionenable=True, compressionlevel=None):
|
|
|
3504
3504
|
return outfp
|
|
3505
3505
|
|
|
3506
3506
|
|
|
3507
|
+
def makedevalt(major, minor):
|
|
3508
|
+
"""
|
|
3509
|
+
Replicates os.makedev functionality to create a device number.
|
|
3510
|
+
:param major: Major device number
|
|
3511
|
+
:param minor: Minor device number
|
|
3512
|
+
:return: Device number
|
|
3513
|
+
"""
|
|
3514
|
+
# The device number is typically represented as:
|
|
3515
|
+
# (major << 8) | minor
|
|
3516
|
+
return (major << 8) | minor
|
|
3517
|
+
|
|
3518
|
+
|
|
3507
3519
|
def GetDevMajorMinor(fdev):
|
|
3508
3520
|
retdev = []
|
|
3509
3521
|
if(hasattr(os, "minor")):
|
|
@@ -4015,7 +4027,10 @@ def PackArchiveFileFromTarFile(infile, outfile, compression="auto", compresswhol
|
|
|
4015
4027
|
curfid = curfid + 1
|
|
4016
4028
|
if(ftype == 2):
|
|
4017
4029
|
flinkname = member.linkname
|
|
4018
|
-
|
|
4030
|
+
try:
|
|
4031
|
+
fdev = format(int(os.makedev(member.devmajor, member.devminor)), 'x').lower()
|
|
4032
|
+
except AttributeError:
|
|
4033
|
+
fdev = format(int(makedevalt(member.devmajor, member.devminor)), 'x').lower()
|
|
4019
4034
|
fdev_minor = format(int(member.devminor), 'x').lower()
|
|
4020
4035
|
fdev_major = format(int(member.devmajor), 'x').lower()
|
|
4021
4036
|
if(ftype == 1 or ftype == 2 or ftype == 3 or ftype == 4 or ftype == 5 or ftype == 6):
|
|
@@ -6534,7 +6549,10 @@ def TarFileToArrayAlt(infile, listonly=False, contentasfile=True, checksumtype="
|
|
|
6534
6549
|
curfid = curfid + 1
|
|
6535
6550
|
if(ftype == 2):
|
|
6536
6551
|
flinkname = member.linkname
|
|
6537
|
-
|
|
6552
|
+
try:
|
|
6553
|
+
fdev = os.makedev(member.devmajor, member.devminor)
|
|
6554
|
+
except AttributeError:
|
|
6555
|
+
fdev = makedevalt(member.devmajor, member.devminor)
|
|
6538
6556
|
fdev_minor = member.devminor
|
|
6539
6557
|
fdev_major = member.devmajor
|
|
6540
6558
|
if(ftype == 1 or ftype == 2 or ftype == 3 or ftype == 4 or ftype == 5 or ftype == 6):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|