All of lore.kernel.org
 help / color / mirror / Atom feed
* [npm] duplicate code
@ 2019-10-03 15:37 Jean-marie Lemetayer
  2019-10-04  6:53 ` Stefan Herbrechtsmeier
  0 siblings, 1 reply; 8+ messages in thread
From: Jean-marie Lemetayer @ 2019-10-03 15:37 UTC (permalink / raw)
  To: yocto; +Cc: Savoir-faire Linux Rennes

Hi all,

I am planning to do some work on npm and recipetool.

I have seen that there is some duplicate code between bitbake/lib/bb/fetch2/npm.py and scripts/lib/recipetool/create_npm.py but there is some inconsistencies.

Here is an example, the _parse_view() function which I patched recently has differ:
https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/bitbake/lib/bb/fetch2/npm.py#n157
https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/scripts/lib/recipetool/create_npm.py#n244

I think merging this "npm utility functions" is a good idea. But where ?

I think about creating a new file: bitbake/lib/bb/npm_utils.py

Or maybe use the existing bitbake/lib/bb/utils.py ?

What do you think ?


Jean-Marie LEMETAYER
Enthusiast embedded systems engineer
Savoir-faire Linux


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-10-08 20:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-03 15:37 [npm] duplicate code Jean-marie Lemetayer
2019-10-04  6:53 ` Stefan Herbrechtsmeier
2019-10-04 12:37   ` Jean-marie Lemetayer
2019-10-04 14:55     ` Stefan Herbrechtsmeier
2019-10-07 12:16       ` Jean-marie Lemetayer
2019-10-07 19:33         ` Stefan Herbrechtsmeier
2019-10-08  5:12           ` Josef Holzmayr
2019-10-08 20:04             ` Stefan Herbrechtsmeier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.