From: garciadeblas Date: Fri, 22 May 2020 14:33:35 +0000 (+0000) Subject: package_tool: fix calculate checksum to consider only files X-Git-Tag: v7.1.0rc5^2^2~1 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F61%2F8961%2F1;p=osm%2Fosmclient.git package_tool: fix calculate checksum to consider only files Change-Id: I7676fbb51fb3d4f3f4ad174241c0e93418a8c49f Signed-off-by: garciadeblas --- 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: