"packages" might list multiple directories
Treat each of the separately when searching for packages in there.. Change-Id: Icb2e2cf2a9cac3d15141aeb8ffad0e38f76cf2e7 Closes-Bug: #1426449
This commit is contained in:
@@ -84,9 +84,13 @@ class FilesConfig(base.BaseConfig):
|
|||||||
return man_sections
|
return man_sections
|
||||||
|
|
||||||
def hook(self):
|
def hook(self):
|
||||||
package = self.config.get('packages', self.name).strip()
|
packages = self.config.get('packages', self.name).strip()
|
||||||
if os.path.isdir(package):
|
expanded = []
|
||||||
self.config['packages'] = find_package.smart_find_packages(package)
|
for pkg in packages.split("\n"):
|
||||||
|
if os.path.isdir(pkg.strip()):
|
||||||
|
expanded.append(find_package.smart_find_packages(pkg.strip()))
|
||||||
|
|
||||||
|
self.config['packages'] = "\n".join(expanded)
|
||||||
|
|
||||||
self.expand_globs()
|
self.expand_globs()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user