[Python-checkins] python/dist/src/Mac/Lib bundlebuilder.py,1.7,1.8

jvr@users.sourceforge.net jvr@users.sourceforge.net
Sat, 23 Nov 2002 17:23:48 -0800


Update of /cvsroot/python/python/dist/src/Mac/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv31085

Modified Files:
	bundlebuilder.py 
Log Message:
get creator code from plist if available, instead of overriding with default

Index: bundlebuilder.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Lib/bundlebuilder.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** bundlebuilder.py	24 Nov 2002 01:15:20 -0000	1.7
--- bundlebuilder.py	24 Nov 2002 01:23:45 -0000	1.8
***************
*** 87,91 ****
  	type = "APPL"
  	# The creator code of the bundle.
! 	creator = "????"
  
  	# List of files that have to be copied to <bundle>/Contents/Resources.
--- 87,91 ----
  	type = "APPL"
  	# The creator code of the bundle.
! 	creator = None
  
  	# List of files that have to be copied to <bundle>/Contents/Resources.
***************
*** 122,125 ****
--- 122,130 ----
  		plist.CFBundleName = self.name
  		plist.CFBundlePackageType = self.type
+ 		if self.creator is None:
+ 			if hasattr(plist, "CFBundleSignature"):
+ 				self.creator = plist.CFBundleSignature
+ 			else:
+ 				self.creator = "????"
  		plist.CFBundleSignature = self.creator