🐛 Missing Param

This commit is contained in:
Nikhil Badyal
2022-10-05 16:15:12 +05:30
parent 20c23dfb44
commit 7406751067
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ def main() -> None:
logger.debug("Trying to build %s" % app)
app_patches, version, is_experimental = patches.get_patches_version(app)
version = downloader.download_apk_to_patch(version, app)
patches.get_patches(app, arg_parser)
patches.get_patches(app, arg_parser, app_patches)
logger.debug(f"Downloaded {app}, version {version}")
arg_parser.run(app=app, version=version, is_experimental=is_experimental)
except Exception as e:
+2 -2
View File
@@ -121,7 +121,7 @@ class Patches(object):
logger.debug("No recommended version.")
return patches, version
def get_patches(self, app, arg_parser) -> None:
def get_patches(self, app, arg_parser, app_patches) -> None:
logger.debug(f"Excluding patches for app {app}")
if self.build_extended and app in self.extended_apps:
excluded_patches = self.env.list(
@@ -129,7 +129,7 @@ class Patches(object):
)
else:
excluded_patches = self.env.list(f"EXCLUDE_PATCH_{app}".upper(), [])
for patch in self.app_patches:
for patch in app_patches:
arg_parser.include(patch["name"]) if patch[
"name"
] not in excluded_patches else arg_parser.exclude(patch["name"])