From: "Jauhien Piatlicki" <piatlicki@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/g-sorcery:master commit in: gs_db_tool/
Date: Thu, 5 Sep 2013 16:33:29 +0000 (UTC) [thread overview]
Message-ID: <1378398738.e99bc52284ede1cc43189b5ac8ac905cf8f5e64f.jauhien@gentoo> (raw)
commit: e99bc52284ede1cc43189b5ac8ac905cf8f5e64f
Author: Jauhien Piatlicki (jauhien) <piatlicki <AT> gmail <DOT> com>
AuthorDate: Thu Sep 5 16:32:18 2013 +0000
Commit: Jauhien Piatlicki <piatlicki <AT> gmail <DOT> com>
CommitDate: Thu Sep 5 16:32:18 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/g-sorcery.git;a=commit;h=e99bc522
gs_db_tool/gs_db_tool: pass package to lambda
---
gs_db_tool/gs_db_tool.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gs_db_tool/gs_db_tool.py b/gs_db_tool/gs_db_tool.py
index 5594a12..1b58cee 100644
--- a/gs_db_tool/gs_db_tool.py
+++ b/gs_db_tool/gs_db_tool.py
@@ -83,10 +83,10 @@ def add_var(pkg_db, args):
pkg_db.add_package(package, ebuild_data)
elif args.lambda_function:
- lmbd = "lambda ebuild_data: " + args.lambda_function
+ lmbd = "lambda package, ebuild_data: " + args.lambda_function
f = eval(lmbd)
for package, ebuild_data in pkg_db:
- value = f(ebuild_data)
+ value = f(package, ebuild_data)
ebuild_data[args.name] = value
pkg_db.add_package(package, ebuild_data)
next reply other threads:[~2013-09-05 16:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-05 16:33 Jauhien Piatlicki [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-09-04 18:03 [gentoo-commits] proj/g-sorcery:master commit in: gs_db_tool/ Jauhien Piatlicki
2013-08-29 21:30 Jauhien Piatlicki
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=1378398738.e99bc52284ede1cc43189b5ac8ac905cf8f5e64f.jauhien@gentoo \
--to=piatlicki@gmail.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.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