📝 Insert enable patch in front

This commit is contained in:
Nikhil Badyal
2024-12-23 21:43:39 +05:30
parent ab11a80c20
commit 4452238ce0
2 changed files with 5 additions and 9 deletions
+2 -2
View File
@@ -124,12 +124,12 @@ class Patches(object):
The `app` parameter is of type `APP`. It represents an instance of the `APP` class.
"""
self.patches_dict[app.app_name] = []
app.patches = convert_command_output_to_json(
patches = convert_command_output_to_json(
f"{config.temp_folder}/{app.resource["cli"]["file_name"]}",
f"{config.temp_folder}/{app.resource["patches"]["file_name"]}",
)
for patch in app.patches:
for patch in patches:
if not patch["compatiblePackages"]:
p = {x: patch[x] for x in ["name", "description"]}
p["app"] = "universal"