From 740675106716e671ce590a946f43bb5517ca7b79 Mon Sep 17 00:00:00 2001 From: Nikhil Badyal Date: Wed, 5 Oct 2022 16:15:12 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Missing=20Param?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 2 +- src/patches.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 699b29f..2c65b01 100644 --- a/main.py +++ b/main.py @@ -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: diff --git a/src/patches.py b/src/patches.py index dd9edc7..1d90afb 100644 --- a/src/patches.py +++ b/src/patches.py @@ -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"])