Changeset 220
- Timestamp:
- Thu Jan 12 05:25:05 2006
- Files:
-
- branches/crypt/Build.py (modified) (diff)
- branches/crypt/carchive.py (modified) (diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
branches/crypt/Build.py
r217 r220 311 311 return cachedfile 312 312 313 UNCOMPRESSED, COMPRESSED , SOURCEFORM= range(3)313 UNCOMPRESSED, COMPRESSED = range(3) 313 313 class PKG(Target): 314 314 typ = 'PKG' … … 339 339 'BINARY':COMPRESSED, 340 340 'EXECUTABLE':COMPRESSED, 341 'PYSOURCE': SOURCEFORM}341 'PYSOURCE':COMPRESSED } 341 341 else: 342 self.cdict = { 'PYSOURCE': SOURCEFORM}342 self.cdict = { 'PYSOURCE':UNCOMPRESSED } 342 342 self.__postinit__() 343 343 def check_guts(self, last_build): -
branches/crypt/carchive.py
r43 r220 205 205 entry[1] is fullpathname of the file. 206 206 entry[2] is a flag for it's storage format (0==uncompressed, 207 1==compressed , 2==Python source format)207 1==compressed) 207 207 entry[3] is the entry's type code. 208 208 Version 5: … … 220 220 s = '' 221 221 flag = 0 222 elif flag == 2: 222 elif typcd == 's': 223 # If it's a source code file, add \0 terminator as it will be 224 # executed as-is by the bootloader. 223 225 s = open(pathnm, 'r').read() 224 226 s = s + '\n\0'
