def addSection(self, section, type = None):
		from sectiondescriptor import SectionDescriptor
		
		if type is None: type = section.type
		
		sectionDescriptor = SectionDescriptor()
		sectionDescriptor.section = section
		sectionDescriptor.type = type
		
		self.sectionDescriptors.append(sectionDescriptor)
	def deserialize(self, streamReader):
		from sectiondescriptor import SectionDescriptor
		
		super(PackageRelease, self).serialize(streamReader)
		
		# Version
		self.fileFormatVersion = streamReader.uint32()
		
		# Header
		self.header.deserialize(streamReader)
		
		# Section descriptors
		sectionCount = streamReader.uint32()
		self.sectionDescriptors = []
		for i in range(0, sectionCount):
			sectionDescriptor = SectionDescriptor()
			sectionDescriptor.deserialize(streamReader)
			self.sectionDescriptors.append(sectionDescriptor)