Explorar o código

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 %!s(int64=5) %!d(string=hai) anos
pai
achega
3c98107873
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      support/scripts/pkg-stats

+ 1 - 0
support/scripts/pkg-stats

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