summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-07-22 14:31:34 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-07-22 14:31:34 (GMT)
commit12cb99b33ffca180ec8ea2efcad0289d3cf11eca (patch)
treecd4dc5363e40983a06bff1dee457358d3c2ef591 /Mac
parentf7538163b0cea658e0ed7b9030b3207b5c59b72e (diff)
downloadcpython-12cb99b33ffca180ec8ea2efcad0289d3cf11eca.zip
cpython-12cb99b33ffca180ec8ea2efcad0289d3cf11eca.tar.gz
cpython-12cb99b33ffca180ec8ea2efcad0289d3cf11eca.tar.bz2
Various tweaks to make the packages work better. Still not 100%, though.
Diffstat (limited to 'Mac')
-rw-r--r--Mac/scripts/buildpkg.py22
1 files changed, 18 insertions, 4 deletions
diff --git a/Mac/scripts/buildpkg.py b/Mac/scripts/buildpkg.py
index 280f8ae..a9c70c1 100644
--- a/Mac/scripts/buildpkg.py
+++ b/Mac/scripts/buildpkg.py
@@ -60,7 +60,6 @@ Title
Version
Description
DefaultLocation
-Diskname
DeleteWarning
NeedsAuthorization
DisableStop
@@ -71,6 +70,10 @@ Required
InstallOnly
RequiresReboot
RootVolumeOnly
+LongFilenames
+LibrarySubdirectory
+AllowBackRev
+OverwritePermissions
InstallFat\
"""
@@ -138,7 +141,6 @@ class PackageMaker:
'Version': None,
'Description': '',
'DefaultLocation': '/',
- 'Diskname': '(null)',
'DeleteWarning': '',
'NeedsAuthorization': 'NO',
'DisableStop': 'NO',
@@ -149,7 +151,12 @@ class PackageMaker:
'InstallOnly': 'NO',
'RequiresReboot': 'NO',
'RootVolumeOnly' : 'NO',
- 'InstallFat': 'NO'}
+ 'InstallFat': 'NO',
+ 'LongFilenames': 'YES',
+ 'LibrarySubdirectory': 'Standard',
+ 'AllowBackRev': 'YES',
+ 'OverwritePermissions': 'NO',
+ }
def __init__(self, title, version, desc):
@@ -201,6 +208,7 @@ class PackageMaker:
self._addArchive()
self._addResources()
self._addSizes()
+ self._addLoc()
def _makeFolders(self):
@@ -223,7 +231,8 @@ class PackageMaker:
info = ""
for f in string.split(PKG_INFO_FIELDS, "\n"):
- info = info + "%s %%(%s)s\n" % (f, f)
+ if self.packageInfo.has_key(f):
+ info = info + "%s %%(%s)s\n" % (f, f)
info = info % self.packageInfo
base = self.packageInfo["Title"] + ".info"
path = join(self.packageResourceFolder, base)
@@ -351,6 +360,11 @@ class PackageMaker:
format = "NumFiles %d\nInstalledSize %d\nCompressedSize %d\n"
f.write(format % (numFiles, installedSize, zippedSize))
+ def _addLoc(self):
+ "Write .loc file."
+ base = self.packageInfo["Title"] + ".loc"
+ f = open(join(self.packageResourceFolder, base), "w")
+ f.write('/')
# Shortcut function interface