mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-20 10:44:32 +10:00
build: Implement pythonic formatting
This commit is contained in:
@@ -63,7 +63,7 @@ class PatcherValidation:
|
||||
for model in model_array.SupportedSMBIOS:
|
||||
logging.info(f"Validating predefined model: {model}")
|
||||
self.constants.custom_model = model
|
||||
build.build_opencore(self.constants.custom_model, self.constants).build_opencore()
|
||||
build.BuildOpenCore(self.constants.custom_model, self.constants)
|
||||
result = subprocess.run([self.constants.ocvalidate_path, f"{self.constants.opencore_release_folder}/EFI/OC/config.plist"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||
if result.returncode != 0:
|
||||
logging.info("Error on build!")
|
||||
@@ -83,7 +83,7 @@ class PatcherValidation:
|
||||
self.constants.computer = model
|
||||
self.constants.custom_model = ""
|
||||
logging.info(f"Validating dumped model: {self.constants.computer.real_model}")
|
||||
build.build_opencore(self.constants.computer.real_model, self.constants).build_opencore()
|
||||
build.BuildOpenCore(self.constants.computer.real_model, self.constants)
|
||||
result = subprocess.run([self.constants.ocvalidate_path, f"{self.constants.opencore_release_folder}/EFI/OC/config.plist"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||
if result.returncode != 0:
|
||||
logging.info("Error on build!")
|
||||
|
||||
Reference in New Issue
Block a user