]> Git Repo - buildroot-mgba.git/commitdiff
utils/getdeveloperlib.py: fix issue with hasfile()
authorHeiko Thiery <[email protected]>
Fri, 13 Nov 2020 14:06:27 +0000 (15:06 +0100)
committerPeter Korsgaard <[email protected]>
Tue, 17 Nov 2020 22:47:01 +0000 (23:47 +0100)
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 <[email protected]>
Signed-off-by: Heiko Thiery <[email protected]>
Signed-off-by: Peter Korsgaard <[email protected]>
utils/getdeveloperlib.py

index dc0cc07cc7efc6150d0302e873f77137896c952f..f57f41887b565c75ed9dfa1204ed832007da1cb9 100644 (file)
@@ -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
This page took 0.03353 seconds and 4 git commands to generate.