From: Adam Blank <adam.blank.g@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Adam Blank <adam.blank.g@gmail.com>
Subject: [PATCH v2 1/4] lib/packagedata.py: slight improvement to code readability
Date: Thu, 02 Apr 2026 17:39:37 +0200 [thread overview]
Message-ID: <20260402-dead_code_and_unification-v2-1-259169372299@gmail.com> (raw)
In-Reply-To: <20260402-dead_code_and_unification-v2-0-259169372299@gmail.com>
Make use of an existing variable rather than creating a new one
when collecting files of a package.
Signed-off-by: Adam Blank <adam.blank.g@gmail.com>
---
meta/lib/oe/packagedata.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/meta/lib/oe/packagedata.py b/meta/lib/oe/packagedata.py
index b6a10a930a..65092261f6 100644
--- a/meta/lib/oe/packagedata.py
+++ b/meta/lib/oe/packagedata.py
@@ -340,8 +340,7 @@ fi
allow_empty = d.getVar('ALLOW_EMPTY:%s' % pkg)
if not allow_empty:
allow_empty = d.getVar('ALLOW_EMPTY')
- root = "%s/%s" % (pkgdest, pkg)
- os.chdir(root)
+ os.chdir(pkgdestpkg)
g = glob('*')
if g or allow_empty == "1":
# Symlinks needed for reverse lookups (from the final package name)
--
2.43.0
next prev parent reply other threads:[~2026-04-02 15:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-02 15:39 [PATCH v2 0/4] Slight code cleanup - remove dead code, fix typos, unify patterns Adam Blank
2026-04-02 15:39 ` Adam Blank [this message]
2026-04-02 15:39 ` [PATCH v2 2/4] package_pkgdata: fix typo to stop calling undefined function Adam Blank
2026-04-03 8:00 ` [OE-core] " Mathieu Dubois-Briand
2026-04-03 10:32 ` Adam Blank
2026-04-03 11:31 ` Mathieu Dubois-Briand
2026-04-04 17:14 ` Adam Blank
2026-04-07 12:52 ` Mathieu Dubois-Briand
2026-04-02 15:39 ` [PATCH v2 3/4] sstate: remove dead code and unify path operations Adam Blank
2026-04-02 15:39 ` [PATCH v2 4/4] package: update the comment block explaining 'emit_pkgdata' Adam Blank
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=20260402-dead_code_and_unification-v2-1-259169372299@gmail.com \
--to=adam.blank.g@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/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