From: biao716.wang Date: Tue, 25 Apr 2023 05:41:56 +0000 (+0900) Subject: fixing nosetest error on GBS X-Git-Tag: debian/0.9.27~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F15%2F291915%2F1;p=tools%2Fgit-buildpackage.git fixing nosetest error on GBS Change-Id: Ib7e5e00dbd270211fedcc6399c738e6fd271d0ae Signed-off-by: biao716.wang --- diff --git a/gbp/pkg/__init__.py b/gbp/pkg/__init__.py index 320973d2..11032499 100644 --- a/gbp/pkg/__init__.py +++ b/gbp/pkg/__init__.py @@ -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))