package_tool: fix calculate checksum to consider only files 61/8961/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 22 May 2020 14:33:35 +0000 (14:33 +0000)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 22 May 2020 14:33:35 +0000 (14:33 +0000)
Change-Id: I7676fbb51fb3d4f3f4ad174241c0e93418a8c49f
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
osmclient/common/package_tool.py

index 203806e..3da96d5 100644 (file)
@@ -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: