本文整理汇总了Python中cerbero.packages.PackagerBase.files_list方法的典型用法代码示例。如果您正苦于以下问题:Python PackagerBase.files_list方法的具体用法?Python PackagerBase.files_list怎么用?Python PackagerBase.files_list使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cerbero.packages.PackagerBase
的用法示例。
在下文中一共展示了PackagerBase.files_list方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: files_list
# 需要导入模块: from cerbero.packages import PackagerBase [as 别名]
# 或者: from cerbero.packages.PackagerBase import files_list [as 别名]
def files_list(self, package_type, force):
if self.config.target_arch != Architecture.UNIVERSAL:
# Nothing special to do for normal arches, just chain up
return PackagerBase.files_list(self, package_type, force)
else:
# For the universal architecture, collect files from each
# sub-archtecture
if package_type == PackageType.DEVEL:
files = self.package.devel_files_list()
else:
files = self.package.files_list()
all_files = []
if isinstance(self.config.universal_archs, list):
archs = self.config.universal_archs
elif isinstance(self.config.universal_archs, dict):
archs = self.config.universal_archs.keys()
else:
raise ConfigurationError('universal_archs must be a list or a dict')
for arch in archs:
all_files += [os.path.join(str(arch), f) for f in files]
return all_files
示例2: files_list
# 需要导入模块: from cerbero.packages import PackagerBase [as 别名]
# 或者: from cerbero.packages.PackagerBase import files_list [as 别名]
def files_list(self, package_type):
if isinstance(self.package, MetaPackage):
return ''
return PackagerBase.files_list(self, package_type, self.force)