fix linting errors
This commit is contained in:
parent
9475a78211
commit
c8a561dbd7
@ -3,6 +3,7 @@
|
||||
# Copyright (C) 2022 Thomas Basler and others
|
||||
#
|
||||
import pkg_resources
|
||||
from dulwich import porcelain
|
||||
|
||||
Import("env")
|
||||
|
||||
@ -13,7 +14,6 @@ missing_pkgs = required_pkgs - installed_pkgs
|
||||
if missing_pkgs:
|
||||
env.Execute('"$PYTHONEXE" -m pip install dulwich')
|
||||
|
||||
from dulwich import porcelain
|
||||
|
||||
def get_firmware_specifier_build_flag():
|
||||
try:
|
||||
@ -28,8 +28,8 @@ def get_firmware_specifier_build_flag():
|
||||
branch_name = ""
|
||||
build_flag = "-D AUTO_GIT_HASH=\\\"" + build_version + "\\\" "
|
||||
build_flag += "-D AUTO_GIT_BRANCH=\\\"" + branch_name + "\\\""
|
||||
print ("Firmware Revision: " + build_version)
|
||||
print ("Firmware build on branch: " + branch_name)
|
||||
print("Firmware Revision: " + build_version)
|
||||
print("Firmware build on branch: " + branch_name)
|
||||
return (build_flag)
|
||||
|
||||
env.Append(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user