commit: 018efdcd54323cb270d0965369c9b6b4c1927d5b
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 7 15:00:41 2026 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sat Feb 7 15:00:41 2026 +0000
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=018efdcd
libq/dep: retain ! for negative USE-deps in dep_print_tree
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
libq/dep.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libq/dep.c b/libq/dep.c
index a05309f2..22932435 100644
--- a/libq/dep.c
+++ b/libq/dep.c
@@ -451,7 +451,7 @@ static void dep_print_tree_int
}
else if (root->type == DEP_USE)
{
- fprintf(fp, "%s? ", root->word);
+ fprintf(fp, "%s%s? ", root->invert ? "!" : "", root->word);
}
else if (root->type == DEP_ATOM)
{