fixing nosetest error on GBS 15/291915/1
authorbiao716.wang <biao716.wang@samsung.com>
Tue, 25 Apr 2023 05:41:56 +0000 (14:41 +0900)
committerbiao716.wang <biao716.wang@samsung.com>
Tue, 25 Apr 2023 05:41:56 +0000 (14:41 +0900)
Change-Id: Ib7e5e00dbd270211fedcc6399c738e6fd271d0ae
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
gbp/pkg/__init__.py

index 320973d2c8e69cf57f5d4e738db840e3e3605c05..11032499b4fe9c5a7e307bfe452302cda8d3ea9e 100644 (file)
@@ -336,6 +336,8 @@ class UpstreamSource(object):
         """
         topdir_files = set()
         for typ, path in file_list:
+            #path is byte type, not str.
+            path = path.decode()
             split = re.sub('^(?:./|../)*', '', path).split('/')
             if len(split) == 1:
                 topdir_files.add((typ, path))