Revision 28403 branches/v2_0_0_prep/build/buildman/bin/bmcore/BMUtil.py

View differences:

BMUtil.py
24 24
		self.url = "unknown"
25 25

  
26 26
		self.dependencies = []
27
		
28
	def getDepManClassifier(self):
29
		classifier = self.platform
30
		if self.platform!="all":
31
			classifier=classifier+"-"+self.distribution+"-"+self.compiler+"-"+self.arch+"-"+self.libraryType
32
		return classifier
27 33

  
28 34
	def getDepManFileName(self):
29
		file_name=self.artifact+"-"+self.version+"-"+self.platform
30
		if self.platform!="all":
31
			file_name=file_name+"-"+self.distribution+"-"+self.compiler+"-"+self.arch+"-"+self.libraryType
35
		file_name=self.artifact+"-"+self.version+"-"+self.getDepManClassifier();
32 36
		return file_name
33 37
 
34 38

  
35 39
	def getDepManFilePath(self):
36
		file_path=self.group+os.path.sep+self.artifact+os.path.sep+self.version+os.path.sep+self.platform
37
		if self.platform!="all":
38
			file_path=file_path+os.path.sep+self.distribution+os.path.sep+self.compiler+os.path.sep+self.arch+os.path.sep+self.libraryType
40
		group = group=self.group.replace(".",os.path.sep)
41
		file_path=group+os.path.sep+self.artifact+os.path.sep+self.version
39 42
		return file_path
40 43

  
41 44
	def getDepManUrlPath(self):
42 45
		group=self.group.replace(".","/")		
43
		file_path=group+"/"+self.artifact+"/"+self.version+"/"+self.platform
44
		if self.platform!="all":
45
			file_path=file_path+"/"+self.distribution+"/"+self.compiler+"/"+self.arch+"/"+self.libraryType
46
		file_path=group+"/"+self.artifact+"/"+self.version
46 47
		return file_path
47 48

  
48 49
	def isSnapshot(self):

Also available in: Unified diff