[Buildroot] [PATCH 02/11] support/scripts/pkg-stats: store pkg dir path

Avraham Shukron avraham.shukron at gmail.com
Fri Jan 3 18:40:30 UTC 2020


On Fri, Jan 3, 2020 at 5:19 PM Heiko Thiery <heiko.thiery at gmail.com> wrote:

> @@ -88,7 +89,7 @@ class Package:
>          Fills in the .infras field
>          """
>          self.infras = list()
> -        with open(self.path, 'r') as f:
> +        with open(os.path.join(self.pkg_path, self.name + '.mk'), 'r')
> as f:
>              lines = f.readlines()
>              for l in lines:
>                  match = INFRA_RE.match(l)
>

Assuming this code worked before, and that you didn't change the meaning of
`self.path`, I don't see the motivation behind this chunk...
It seems like you are reconstructing `self.path` from `self.pkg_path`. Am
I missing something?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200103/728a64b8/attachment.html>


More information about the buildroot mailing list