diff mbox series

[v3,07/12] support/scripts/pkg-stats: store pkg dir path

Message ID 20200222085715.23769-8-heiko.thiery@gmail.com
State Superseded
Headers show
Series pkg-stats json output improvements | expand

Commit Message

Heiko Thiery Feb. 22, 2020, 8:57 a.m. UTC
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>
---
 support/scripts/pkg-stats | 1 +
 1 file changed, 1 insertion(+)

Comments

Titouan Christophe Feb. 23, 2020, 3:20 p.m. UTC | #1
Hello Heiko,
On 2/22/20 9:57 AM, Heiko Thiery wrote:
> 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>

Reviewed-by: Titouan Christophe <titouan.christophe@railnova.eu>
Tested-by: Titouan Christophe <titouan.christophe@railnova.eu>

> ---
>   support/scripts/pkg-stats | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats
> index 90afcc2332..36b33586ef 100755
> --- a/support/scripts/pkg-stats
> +++ b/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.patch_count = 0
> 

Regards,

Titouan
Heiko Thiery Feb. 24, 2020, 8:04 a.m. UTC | #2
HI Titouan and all,

Am So., 23. Feb. 2020 um 16:20 Uhr schrieb Titouan Christophe
<titouan.christophe@railnova.eu>:
>
> Hello Heiko,
> On 2/22/20 9:57 AM, Heiko Thiery wrote:
> > 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>
>
> Reviewed-by: Titouan Christophe <titouan.christophe@railnova.eu>
> Tested-by: Titouan Christophe <titouan.christophe@railnova.eu>
>
> > ---
> >   support/scripts/pkg-stats | 1 +
> >   1 file changed, 1 insertion(+)
> >
> > diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats
> > index 90afcc2332..36b33586ef 100755
> > --- a/support/scripts/pkg-stats
> > +++ b/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.patch_count = 0
> >
>
> Regards,
>
> Titouan

Thank you,
Heiko
diff mbox series

Patch

diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats
index 90afcc2332..36b33586ef 100755
--- a/support/scripts/pkg-stats
+++ b/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.patch_count = 0