浏览代码

support/scripts/pkg-stats: store pkg dir path

This value can be used for later processing.

In the buildroot-stats application this is used to create links pointing
to the git repo of buildroot.

Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit d31fadfbf53a4e8c36c3fc4bb4b16c9dfd3e93e3)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Heiko Thiery 5 年之前
父节点
当前提交
3c98107873
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      support/scripts/pkg-stats

+ 1 - 0
support/scripts/pkg-stats

@@ -64,6 +64,7 @@ class Package:
     def __init__(self, name, path):
     def __init__(self, name, path):
         self.name = name
         self.name = name
         self.path = path
         self.path = path
+        self.pkg_path = os.path.dirname(path)
         self.infras = None
         self.infras = None
         self.license = None
         self.license = None
         self.has_license = False
         self.has_license = False