[DEV] add list of element package (no package generated)
This commit is contained in:
parent
a9f8ab7ea2
commit
7e5d8db361
@ -610,7 +610,7 @@ class Module:
|
|||||||
self.sub_heritage_list.add_heritage(self.local_heritage)
|
self.sub_heritage_list.add_heritage(self.local_heritage)
|
||||||
target.make_package(self.name, self.package_prop, os.path.join(self.origin_path, ".."), self.sub_heritage_list)
|
target.make_package(self.name, self.package_prop, os.path.join(self.origin_path, ".."), self.sub_heritage_list)
|
||||||
else:
|
else:
|
||||||
target.make_package(self.name, self.package_prop, os.path.join(self.origin_path, ".."))
|
target.make_package(self.name, self.package_prop, os.path.join(self.origin_path, ".."), self.sub_heritage_list)
|
||||||
|
|
||||||
# return local dependency ...
|
# return local dependency ...
|
||||||
return self.sub_heritage_list
|
return self.sub_heritage_list
|
||||||
|
@ -48,13 +48,13 @@ class Target(target.Target):
|
|||||||
result += elem
|
result += elem
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def make_package(self, pkgName, pkgProperties, basePkgPath, type="generic"):
|
def make_package(self, pkgName, pkgProperties, basePkgPath, heritage_list, type="generic"):
|
||||||
if type == "debian":
|
if type == "debian":
|
||||||
self.make_package_debian(pkgName, pkgProperties, basePkgPath)
|
self.make_package_debian(pkgName, pkgProperties, basePkgPath, heritage_list)
|
||||||
elif type == "generic":
|
elif type == "generic":
|
||||||
self.make_package_generic(pkgName, pkgProperties, basePkgPath)
|
self.make_package_generic(pkgName, pkgProperties, basePkgPath, heritage_list)
|
||||||
|
|
||||||
def make_package_debian(self, pkgName, pkgProperties, basePkgPath):
|
def make_package_debian(self, pkgName, pkgProperties, basePkgPath, heritage_list):
|
||||||
# http://alp.developpez.com/tutoriels/debian/creer-paquet/
|
# http://alp.developpez.com/tutoriels/debian/creer-paquet/
|
||||||
debianPkgName = re.sub("_", "-", pkgName)
|
debianPkgName = re.sub("_", "-", pkgName)
|
||||||
debug.debug("------------------------------------------------------------------------")
|
debug.debug("------------------------------------------------------------------------")
|
||||||
@ -178,7 +178,10 @@ class Target(target.Target):
|
|||||||
* *--> YY
|
* *--> YY
|
||||||
*--> sources
|
*--> sources
|
||||||
"""
|
"""
|
||||||
def make_package_generic(self, pkgName, pkgProperties, basePkgPath):
|
def make_package_generic(self, pkgName, pkgProperties, basePkgPath, heritage_list):
|
||||||
|
debug.warning("heritage for " + str(pkgName) + ":")
|
||||||
|
for heritage in heritage_list.list_heritage:
|
||||||
|
debug.warning("heritage .... " + str(heritage.name) + " : " + str(heritage.depends))
|
||||||
debianPkgName = re.sub("_", "-", pkgName)
|
debianPkgName = re.sub("_", "-", pkgName)
|
||||||
debug.debug("------------------------------------------------------------------------")
|
debug.debug("------------------------------------------------------------------------")
|
||||||
debug.info("Generate generic '" + debianPkgName + "' v"+pkgProperties["VERSION"])
|
debug.info("Generate generic '" + debianPkgName + "' v"+pkgProperties["VERSION"])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user