[PATCH rtems-net-legacy v3] netlegacy: Use os.path instead of hardcoded Unix like path
Vijay Kumar Banerjee
vijay at rtems.org
Thu Apr 15 04:22:53 UTC 2021
On Wed, Apr 14, 2021 at 8:40 PM Chris Johns <chrisj at rtems.org> wrote:
>
> On 15/4/21 5:22 am, Vijay Kumar Banerjee wrote:
> > On Wed, Apr 14, 2021 at 1:10 PM Gedare Bloom <gedare at rtems.org> wrote:
> >>
> >> On Wed, Apr 14, 2021 at 12:36 PM Vijay Kumar Banerjee <vijay at rtems.org> wrote:
> >>>
> >>> ---
> >>> netlegacy.py | 27 +++++++++++++--------------
> >>> 1 file changed, 13 insertions(+), 14 deletions(-)
> >>>
> >>> diff --git a/netlegacy.py b/netlegacy.py
> >>> index 05cb78a..2936b8f 100644
> >>> --- a/netlegacy.py
> >>> +++ b/netlegacy.py
> >>> @@ -37,7 +37,7 @@ exclude_headers = ['rtems-bsd-user-space.h', 'rtems-bsd-kernel-space.h']
> >>>
> >>> for root, dirs, files in os.walk("."):
> >>> [dirs.remove(d) for d in list(dirs) if d in exclude_dirs]
> >>> - dirs.append('./bsps/shared/net')
> >>> + dirs.append(os.path.join('bsps', 'shared', 'net'))
> >>> include_files[root[2:]] = []
> >>> for name in files:
> >>> ext = os.path.splitext(name)[1]
> >>> @@ -59,10 +59,9 @@ def build(bld):
> >>> include_path = []
> >>> ip = ''
> >>> bsp = bld.env.RTEMS_ARCH_BSP.split('-')[-1]
> >>> - pppd_source = [os.path.join('./pppd', s)
> >>> - for s in os.listdir('./pppd') if s[-2:] == '.c']
> >>> - telnetd_source = [os.path.join('./telnetd', s)
> >>> - for s in os.listdir('telnetd') if s[-2:] == '.c']
> >>> + pppd_source = [os.path.join('pppd', s)
> >>> + for s in os.listdir('pppd')
> >>> + if os.path.splitext(s)[1] == '.c']
> >> This indentation looks wrong?
> >>
> > This looks good with git show. I'm not sure what happened here, maybe
> > it looks weird due to email formatting?
>
> Embedded tab character?
I'm not sure what's the issue here. Generally, git show output shows
any irregularity. This indentation looks right when I open it on mutt.
This is probably some issue with the email formatting. I see that some
of the removed codes in this patch also have crooked indentation but
they look properly indented upstream.
>
> Chris
More information about the devel
mailing list