From: Heiko Thiery Date: Fri, 13 Nov 2020 14:06:27 +0000 (+0100) Subject: utils/getdeveloperlib.py: fix issue with hasfile() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=afc112b0e4627a01e95887f7770437b0d060cf43;p=buildroot.git utils/getdeveloperlib.py: fix issue with hasfile() pkg-stats is not able anymore to set the developers for defconfigs and packages. This issue is introduced with ae86067a151b6596ca492d6f94ed513f4f8e18d7. The hasfile() method from Developer object tries to check an absolute path against a relative path. Convert the filepath to be checked also into an absolute path. Cc: Thomas Petazzoni Signed-off-by: Heiko Thiery Signed-off-by: Peter Korsgaard --- diff --git a/utils/getdeveloperlib.py b/utils/getdeveloperlib.py index dc0cc07cc7..f57f41887b 100644 --- a/utils/getdeveloperlib.py +++ b/utils/getdeveloperlib.py @@ -126,6 +126,7 @@ class Developer: def hasfile(self, f): f = os.path.abspath(f) for fs in self.files: + fs = os.path.abspath(fs) if f.startswith(fs): return True return False