From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] check-package: move parts to subdirectory
Date: Thu, 20 Apr 2017 22:30:57 +0200 [thread overview]
Message-ID: <20170420223057.0cdcdede@free-electrons.com> (raw)
In-Reply-To: <20170419180621.16765-1-ricardo.martincoski@gmail.com>
Hello,
On Wed, 19 Apr 2017 15:06:21 -0300, Ricardo Martincoski wrote:
> Currently check-package script use many files in the same directory.
>
> Keep the main script at support/scripts/check-package and move the rest
> to a subdirectory.
>
> The modules were previously prefixed to make easy to identify which
> script they belong to.
> It's not needed when using a subdirectory, so remove the prefix.
>
> Note: if this commit is checked out and the script is run, and later on
> a previous version is checked out, the file
> support/scripts/checkpackagelib/__init__.pyc
> needs to be manually removed to prevent Python interpreter to look for
> checkpackagelib package when only the checkpackagelib module is
> available.
>
> Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
> ---
> The note above can be removed when applying if you think it is not
> needed.
> ---
> support/scripts/check-package | 18 +++++++++---------
> support/scripts/checkpackagelib/__init__.py | 0
> .../{checkpackagebase.py => checkpackagelib/base.py} | 2 +-
> .../{checkpackagelib.py => checkpackagelib/lib.py} | 4 ++--
> .../lib_config.py} | 12 ++++++------
> .../lib_hash.py} | 12 ++++++------
> .../lib_mk.py} | 12 ++++++------
> .../lib_patch.py} | 6 +++---
> .../{check-package.txt => checkpackagelib/readme.txt} | 7 +++----
> 9 files changed, 36 insertions(+), 37 deletions(-)
> create mode 100644 support/scripts/checkpackagelib/__init__.py
> rename support/scripts/{checkpackagebase.py => checkpackagelib/base.py} (78%)
> rename support/scripts/{checkpackagelib.py => checkpackagelib/lib.py} (93%)
> rename support/scripts/{checkpackagelib_config.py => checkpackagelib/lib_config.py} (93%)
> rename support/scripts/{checkpackagelib_hash.py => checkpackagelib/lib_hash.py} (88%)
> rename support/scripts/{checkpackagelib_mk.py => checkpackagelib/lib_mk.py} (96%)
> rename support/scripts/{checkpackagelib_patch.py => checkpackagelib/lib_patch.py} (92%)
> rename support/scripts/{check-package.txt => checkpackagelib/readme.txt} (95%)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
prev parent reply other threads:[~2017-04-20 20:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-19 18:06 [Buildroot] [PATCH] check-package: move parts to subdirectory Ricardo Martincoski
2017-04-20 20:30 ` Thomas Petazzoni [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170420223057.0cdcdede@free-electrons.com \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox