[Python-checkins] python/dist/src/Mac/scripts buildpkg.py,1.3,1.4

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
2003年7月22日 07:31:36 -0700


Update of /cvsroot/python/python/dist/src/Mac/scripts
In directory sc8-pr-cvs1:/tmp/cvs-serv32383
Modified Files:
	buildpkg.py 
Log Message:
Various tweaks to make the packages work better. Still not 100%, though.
Index: buildpkg.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/scripts/buildpkg.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** buildpkg.py	1 Feb 2003 10:07:28 -0000	1.3
--- buildpkg.py	22 Jul 2003 14:31:34 -0000	1.4
***************
*** 61,65 ****
 Description
 DefaultLocation
- Diskname
 DeleteWarning
 NeedsAuthorization
--- 61,64 ----
***************
*** 72,75 ****
--- 71,78 ----
 RequiresReboot
 RootVolumeOnly
+ LongFilenames
+ LibrarySubdirectory
+ AllowBackRev
+ OverwritePermissions
 InstallFat\
 """
***************
*** 139,143 ****
 'Description': '',
 'DefaultLocation': '/',
- 'Diskname': '(null)',
 'DeleteWarning': '',
 'NeedsAuthorization': 'NO',
--- 142,145 ----
***************
*** 150,154 ****
 'RequiresReboot': 'NO',
 'RootVolumeOnly' : 'NO',
! 'InstallFat': 'NO'}
 
 
--- 152,161 ----
 'RequiresReboot': 'NO',
 'RootVolumeOnly' : 'NO',
! 'InstallFat': 'NO',
! 'LongFilenames': 'YES',
! 'LibrarySubdirectory': 'Standard',
! 'AllowBackRev': 'YES',
! 'OverwritePermissions': 'NO',
! }
 
 
***************
*** 202,205 ****
--- 209,213 ----
 self._addResources()
 self._addSizes()
+ self._addLoc()
 
 
***************
*** 224,228 ****
 info = ""
 for f in string.split(PKG_INFO_FIELDS, "\n"):
! info = info + "%s %%(%s)s\n" % (f, f)
 info = info % self.packageInfo
 base = self.packageInfo["Title"] + ".info"
--- 232,237 ----
 info = ""
 for f in string.split(PKG_INFO_FIELDS, "\n"):
! if self.packageInfo.has_key(f):
! info = info + "%s %%(%s)s\n" % (f, f)
 info = info % self.packageInfo
 base = self.packageInfo["Title"] + ".info"
***************
*** 352,355 ****
--- 361,369 ----
 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

AltStyle によって変換されたページ (->オリジナル) /