From patchwork Fri Nov 13 14:06:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1399811 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=QNCe2/wl; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CXgJD1Rfgz9sSs for ; Sat, 14 Nov 2020 01:06:52 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id A65CF2002E; Fri, 13 Nov 2020 14:06:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lB2VLos1dd3f; Fri, 13 Nov 2020 14:06:49 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 81B232E20E; Fri, 13 Nov 2020 14:06:49 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id B96401BF3A0 for ; Fri, 13 Nov 2020 14:06:47 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id AF2922E219 for ; Fri, 13 Nov 2020 14:06:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JBS7dkrkIfH6 for ; Fri, 13 Nov 2020 14:06:46 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by silver.osuosl.org (Postfix) with ESMTPS id 95C0D2002E for ; Fri, 13 Nov 2020 14:06:46 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id c17so10006705wrc.11 for ; Fri, 13 Nov 2020 06:06:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XAv6z4D0sJvva/pk7dcyjTYz32WMiGn5nmxSnOlddog=; b=QNCe2/wlNcpm8Rt2ls2dHwSCOkCN4GWjJi2B33cBISD7cjgpxEfX7qAXBelT7j3qaT lsg8YcEE5v4p+PWMGZk8C2UaUkESvHuE8eAVVRdOcMCf6zQEh4PNdXiOV7B9OKb/iACE NBfkC7hUMWn1qi3pQHs82xgxa0IkhwpPxkFMJQI2LrGwSDJINMQlIZpJGCuxrm29pH4P bMo5kEX4/AU8chvX1bFVGrpHfu8fXGCKEE0a2Zte9OCsbc2hZP/AzWNw9X5Hh4XWs0Lz +1vIG3Tq3KDPYxgFsIfsKXuRmlakMDkQCSjiKSLCm4NA5FdpnsPv/2Ehm8jl4xmz9ZhI 1YHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XAv6z4D0sJvva/pk7dcyjTYz32WMiGn5nmxSnOlddog=; b=Shor/Obj5eAxPwmA997HhgC/h8KcqbRa0BxdZO5+VgFvIL71zu4VDpY+jT8eseEg0g 9ug3Pkh3eDkMaWyvNGmYzz2KzWPACefra604+JosMPqPsS2na5qnAxIMRY342pLkFJlz wjXwjhv8G/RqFc2LIe0EwAc9CcpCh5VmyiFM5tM9VUm81LfpLa85o0LAxTiCaaDlu8BU rMw33Tjgzxn5nombXX0hsoiVNt/swLFhLZRDYbz6VyUDZ4bIDYkXAf6IktBZUadGckla t/wBco7R1a5TWWEidCjFs8rCkhtaXzGcYpvqXC1cBAUUmPVuBV8Favn01xLEQVD5jtgJ qvPg== X-Gm-Message-State: AOAM533I0gn5gP3LrMD30klgvVB1e8VAorlxpXiPM6bR3y4hGeSPcanM QtipCXzQH/x1jGtHXys7ISyU2MpQyobt5g== X-Google-Smtp-Source: ABdhPJwNtVKiEjC39/+GpT5Xu4wWVzf2xE+GICjY0McsbL774yiGzMoiRVmf459QM6eUiULxwbh9zg== X-Received: by 2002:adf:9d84:: with SMTP id p4mr3692857wre.370.1605276404851; Fri, 13 Nov 2020 06:06:44 -0800 (PST) Received: from t450s.fritz.box (ip5b426f26.dynamic.kabel-deutschland.de. [91.66.111.38]) by smtp.gmail.com with ESMTPSA id f5sm11598041wrg.32.2020.11.13.06.06.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Nov 2020 06:06:44 -0800 (PST) From: Heiko Thiery To: buildroot@buildroot.org Date: Fri, 13 Nov 2020 15:06:27 +0100 Message-Id: <20201113140627.6097-1-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] utils/getdeveloperlib.py: fix issue with hasfile() X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Heiko Thiery , Thomas Petazzoni Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" 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 --- utils/getdeveloperlib.py | 1 + 1 file changed, 1 insertion(+) 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