From: Bert Outtier <outtierbert@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] support/scripts: fix pycompile for short filenames
Date: Mon, 29 Mar 2021 12:55:54 +0200 [thread overview]
Message-ID: <20210329105554.1622972-1-outtierbert@gmail.com> (raw)
Signed-off-by: Bert Outtier <outtierbert@gmail.com>
---
support/scripts/pycompile.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/support/scripts/pycompile.py b/support/scripts/pycompile.py
index 2b636e03cb..b8cd3cee6c 100644
--- a/support/scripts/pycompile.py
+++ b/support/scripts/pycompile.py
@@ -30,7 +30,7 @@ def compile_one(host_path, strip_root=None, verbose=False):
if os.path.islink(host_path) or not os.path.isfile(host_path):
return # only compile real files
- if not re.match(r"^[_A-Za-z][_A-Za-z0-9]+\.py$",
+ if not re.match(r"^[_A-Za-z][_A-Za-z0-9]*\.py$",
os.path.basename(host_path)):
return # only compile "importable" python modules
--
2.25.1
next reply other threads:[~2021-03-29 10:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-29 10:55 Bert Outtier [this message]
2021-03-30 20:22 ` [Buildroot] [PATCH 1/1] support/scripts: fix pycompile for short filenames Yann E. MORIN
2021-04-03 11:48 ` Peter Korsgaard
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=20210329105554.1622972-1-outtierbert@gmail.com \
--to=outtierbert@gmail.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