commit:     28489559193b543926ce93b95eb5f6f91b5a5574
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 29 12:19:16 2021 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Wed Dec 29 12:19:16 2021 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=28489559

qmerge: drop ugly tree_pkg_meta_get workaround

tree_pkg_meta_get() returned pointers now won't change for as long as
the object exists

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 qmerge.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/qmerge.c b/qmerge.c
index 75f03c0..3f82d61 100644
--- a/qmerge.c
+++ b/qmerge.c
@@ -1528,7 +1528,6 @@ pkg_unmerge(tree_pkg_ctx *pkg_ctx, depend_atom *rpkg, set 
*keep,
        if (!pretend && rpkg == NULL) {
                buf = tree_pkg_meta_get(pkg_ctx, EAPI);
                phases = tree_pkg_meta_get(pkg_ctx, DEFINED_PHASES);
-               buf = tree_pkg_meta_get(pkg_ctx, EAPI);  /* when phases caused 
ralloc */
                if (phases != NULL) {
                        mkdirat(pkg_ctx->fd, "temp", 0755);
                        pkg_run_func_at(pkg_ctx->fd, ".", phases, PKG_PRERM,

Reply via email to