aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Heiko Thiery <heiko.thiery@gmail.com>2020-11-13 15:06:27 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2020-11-17 23:47:01 +0100
commitafc112b0e4627a01e95887f7770437b0d060cf43 (patch)
treed140ec76683f496692c523d49af8cb479a1e6af8
parent105d61c85062b18bc9555011f909c8c8a5a33277 (diff)
downloadbuildroot-afc112b0e4627a01e95887f7770437b0d060cf43.tar.gz
buildroot-afc112b0e4627a01e95887f7770437b0d060cf43.tar.bz2
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 <thomas.petazzoni@bootlin.com> Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--utils/getdeveloperlib.py1
1 files changed, 1 insertions, 0 deletions
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