aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2023-01-30 15:08:37 +0100
committerFabian Groffen <grobian@gentoo.org>2023-01-30 15:08:37 +0100
commit933b7cdbd8e15c6b120aec9cb5bec3ec36a27485 (patch)
treefa5d287f100f9f096322a93d01c2fd4cd79b8168
parentqkeyword: add -A option to show the current arch (diff)
downloadportage-utils-933b7cdbd8e15c6b120aec9cb5bec3ec36a27485.tar.gz
portage-utils-933b7cdbd8e15c6b120aec9cb5bec3ec36a27485.tar.bz2
portage-utils-933b7cdbd8e15c6b120aec9cb5bec3ec36a27485.zip
libq/tree: add support IDEPEND
Bug: https://bugs.gentoo.org/892533 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rw-r--r--libq/tree.c6
-rw-r--r--libq/tree.h5
2 files changed, 8 insertions, 3 deletions
diff --git a/libq/tree.c b/libq/tree.c
index 2a457ce9..76190ed3 100644
--- a/libq/tree.c
+++ b/libq/tree.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2005-2022 Gentoo Foundation
+ * Copyright 2005-2023 Gentoo Foundation
* Distributed under the terms of the GNU General Public License v2
*
* Copyright 2005-2008 Ned Ludd - <solar@gentoo.org>
@@ -824,6 +824,7 @@ tree_read_file_md5(tree_pkg_ctx *pkg_ctx)
assign_var(DEFINED_PHASES);
assign_var(REQUIRED_USE);
assign_var(BDEPEND);
+ assign_var(IDEPEND);
assign_var(EPREFIX);
assign_var(_eclasses_);
assign_var(_md5_);
@@ -901,6 +902,7 @@ tree_read_file_ebuild(tree_pkg_ctx *pkg_ctx)
match_key(EAPI);
match_key(REQUIRED_USE);
match_key(BDEPEND);
+ match_key(IDEPEND);
#undef match_key
}
@@ -1004,6 +1006,7 @@ tree_read_file_binpkg_xpak_cb(
match_path(DEFINED_PHASES);
match_path(REQUIRED_USE);
match_path(BDEPEND);
+ match_path(IDEPEND);
match_path(CONTENTS);
match_path(USE);
match_path(EPREFIX);
@@ -1513,6 +1516,7 @@ tree_foreach_packages(tree_ctx *ctx, tree_pkg_cb callback, void *priv)
match_key2(REPO, repository);
match_key(SIZE);
match_key(BDEPEND);
+ match_key(IDEPEND);
match_key(PATH);
match_key2(BUILD_ID, BUILDID);
#undef match_key
diff --git a/libq/tree.h b/libq/tree.h
index 2f2c81fc..efafe730 100644
--- a/libq/tree.h
+++ b/libq/tree.h
@@ -1,5 +1,5 @@
/*
- * Copyright 2005-2022 Gentoo Foundation
+ * Copyright 2005-2023 Gentoo Foundation
* Distributed under the terms of the GNU General Public License v2
*/
@@ -96,8 +96,9 @@ struct tree_pkg_meta {
char *Q_PDEPEND;
char *Q_PROVIDE; /* line 14 */
char *Q_EAPI;
- char *Q_PROPERTIES;
+ char *Q_PROPERTIES; /* last line from metadata */
char *Q_BDEPEND;
+ char *Q_IDEPEND;
/* binpkgs/vdb */
char *Q_DEFINED_PHASES;
char *Q_REQUIRED_USE;