Message ID | 20240926204001.2245184-1-claus.stovgaard@gmail.com |
---|---|
State | Under Review |
Headers | show |
Series | [master,scarthgap,v2] lib/oe/package-manager: return early in install_complementary with empty globs | expand |
diff --git a/meta/lib/oe/package_manager/__init__.py b/meta/lib/oe/package_manager/__init__.py index d3b2317894..1d923c436e 100644 --- a/meta/lib/oe/package_manager/__init__.py +++ b/meta/lib/oe/package_manager/__init__.py @@ -365,7 +365,7 @@ class PackageManager(object, metaclass=ABCMeta): for complementary_linguas in (self.d.getVar('IMAGE_LINGUAS_COMPLEMENTARY') or "").split(): globs += (" " + complementary_linguas) % lang - if globs is None: + if not globs: return # we need to write the list of installed packages to a file because the
Return early when globs is either None or an empty string. If globs is an empty string from the self.d.getVar, we should skip the reset of install_complementary, as the result from processing with empty glob in oe-pkgdata-util will always be 0 packages to install. Signed-off-by: Claus Stovgaard <claus.stovgaard@gmail.com> --- meta/lib/oe/package_manager/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)