From 5f8a12367e3fba2a6f2ee7025e801dbff6da37a7 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Fri, 22 May 2020 14:33:35 +0000 Subject: [PATCH] package_tool: fix calculate checksum to consider only files Change-Id: I7676fbb51fb3d4f3f4ad174241c0e93418a8c49f Signed-off-by: garciadeblas --- osmclient/common/package_tool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osmclient/common/package_tool.py b/osmclient/common/package_tool.py index 203806e..3da96d5 100644 --- a/osmclient/common/package_tool.py +++ b/osmclient/common/package_tool.py @@ -150,7 +150,7 @@ class PackageTool(object): :returns: None """ self._logger.debug("") - files = [f for f in glob.glob(package_folder + "/**/*.*", recursive=True)] + files = [f for f in glob.glob(package_folder + "/**/*.*", recursive=True) if os.path.isfile(f)] with open("{}/checksums.txt".format(package_folder), "w+") as checksum: for file_item in files: if "checksums.txt" in file_item: -- 2.25.1