fix: fix packer logging issue
This commit is contained in:
@@ -35,7 +35,7 @@ class App:
|
||||
f"requested minimum version is not fulfilled. {metadata.min_version} required got {VERSION}"
|
||||
)
|
||||
except Exception as e:
|
||||
logging.error(f"fail to initialize packer: {e}")
|
||||
logging.error(f"fail to initialize packer: %s", e)
|
||||
sys.exit(1)
|
||||
|
||||
def run(self) -> None:
|
||||
@@ -48,20 +48,20 @@ class App:
|
||||
# copy header files
|
||||
logging.info("Copying header files...")
|
||||
for info in resolve_include_copy(self.__ctx):
|
||||
logging.info("Copying {0} -> {1}", info.from_path, info.to_path)
|
||||
logging.info("Copying %s -> %s", info.from_path, info.to_path)
|
||||
archiver.push_file(info.from_path, info.to_path)
|
||||
# copy lib files
|
||||
logging.info("Copying library files...")
|
||||
for info in resolve_lib_copy(self.__ctx):
|
||||
logging.info("Copying {0} -> {1}", info.from_path, info.to_path)
|
||||
logging.info("Copying %s -> %s", info.from_path, info.to_path)
|
||||
archiver.push_file(info.from_path, info.to_path)
|
||||
# copy package distribution files
|
||||
logging.info("Creating package manager files...")
|
||||
for info in resolve_cmake_copy(self.__ctx):
|
||||
logging.info("Creating {0}", info.to_path)
|
||||
logging.info("Creating %s", info.to_path)
|
||||
archiver.push_text(info.text, info.to_path)
|
||||
for info in resolve_pkgconfig_copy(self.__ctx):
|
||||
logging.info("Creating {0}", info.to_path)
|
||||
logging.info("Creating %s", info.to_path)
|
||||
archiver.push_text(info.text, info.to_path)
|
||||
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ class CMakeProperties:
|
||||
raise ValueError(
|
||||
"bad namespace component in CMake. consider manually specifying it"
|
||||
)
|
||||
if not utils.is_good_name(self.target_name) is None:
|
||||
if not utils.is_good_name(self.target_name):
|
||||
raise ValueError(
|
||||
"bad target name component in CMake. consider manually specifying it"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user