Re: [PATCH 2/4] scripts: add reqs python library

2016-06-15 Thread Julia Lawall
On Wed, 15 Jun 2016, Luis R. Rodriguez wrote: > On Wed, Jun 15, 2016 at 09:11:45PM +0200, Michal Marek wrote: > > Dne 15.6.2016 v 18:02 Luis R. Rodriguez napsal(a): > > > On Wed, Jun 15, 2016 at 09:50:11AM +0200, Michal Marek wrote: > > >> On 2016-06-15 00:10, Luis R. Rodriguez wrote: > > >>> +

Re: [PATCH 2/4] scripts: add reqs python library

2016-06-15 Thread Luis R. Rodriguez
On Wed, Jun 15, 2016 at 09:11:45PM +0200, Michal Marek wrote: > Dne 15.6.2016 v 18:02 Luis R. Rodriguez napsal(a): > > On Wed, Jun 15, 2016 at 09:50:11AM +0200, Michal Marek wrote: > >> On 2016-06-15 00:10, Luis R. Rodriguez wrote: > >>> +weight = (int(rel_specs['VERSION'])<< 32) + \ >

Re: [PATCH 2/4] scripts: add reqs python library

2016-06-15 Thread Michal Marek
Dne 15.6.2016 v 18:02 Luis R. Rodriguez napsal(a): > On Wed, Jun 15, 2016 at 09:50:11AM +0200, Michal Marek wrote: >> On 2016-06-15 00:10, Luis R. Rodriguez wrote: >>> +weight = (int(rel_specs['VERSION'])<< 32) + \ >>> + (int(rel_specs['PATCHLEVEL']) << 16) + \ >>> +

Re: [PATCH 2/4] scripts: add reqs python library

2016-06-15 Thread Luis R. Rodriguez
On Wed, Jun 15, 2016 at 08:06:33AM +0200, Julia Lawall wrote: > > > On Tue, 14 Jun 2016, Luis R. Rodriguez wrote: > > > This library can be used in other python scripts to require > > specific binary version requirements. It will be used first > > with coccinelle's python bindings to enable cocc

Re: [PATCH 2/4] scripts: add reqs python library

2016-06-15 Thread Luis R. Rodriguez
On Wed, Jun 15, 2016 at 09:50:11AM +0200, Michal Marek wrote: > On 2016-06-15 00:10, Luis R. Rodriguez wrote: > > +weight = (int(rel_specs['VERSION'])<< 32) + \ > > + (int(rel_specs['PATCHLEVEL']) << 16) + \ > > + (sublevel<< 8 ) +

Re: [Cocci] [PATCH 2/4] scripts: add reqs python library

2016-06-15 Thread Luis R. Rodriguez
On Wed, Jun 15, 2016 at 02:01:37PM +0200, SF Markus Elfring wrote: > > +"To be used for verifying binay package dependencies on Python code" > > Would you like to fix a typo here? > > ... binary ... Fixed. Luis

Aw: [Cocci] [PATCH 2/4] scripts: add reqs python library

2016-06-15 Thread SF Markus Elfring
> +class Req: Will a longer identifier like "requirement" be more useful than the suggested abbreviation? > +"To be used for verifying binay package dependencies on Python code" Would you like to fix a typo here? ... binary ... > +def req_old_program(self, program, version_req): Do

Re: [PATCH 2/4] scripts: add reqs python library

2016-06-15 Thread Michal Marek
On 2016-06-15 00:10, Luis R. Rodriguez wrote: > +weight = (int(rel_specs['VERSION'])<< 32) + \ > + (int(rel_specs['PATCHLEVEL']) << 16) + \ > + (sublevel << 8 ) + \ > + (extra * 60) + (relmod * 2) This is going to

Re: [PATCH 2/4] scripts: add reqs python library

2016-06-14 Thread Julia Lawall
On Tue, 14 Jun 2016, Luis R. Rodriguez wrote: > This library can be used in other python scripts to require > specific binary version requirements. It will be used first > with coccinelle's python bindings to enable coccinelle SmPL > files to specify version requirements per cocci file if it > h

[PATCH 2/4] scripts: add reqs python library

2016-06-14 Thread Luis R. Rodriguez
This library can be used in other python scripts to require specific binary version requirements. It will be used first with coccinelle's python bindings to enable coccinelle SmPL files to specify version requirements per cocci file if it has any. Signed-off-by: Luis R. Rodriguez --- MAINTAINERS