From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C2062158020 for ; Thu, 15 Dec 2022 09:03:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 03FD7E07DB; Thu, 15 Dec 2022 09:03:37 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DC33FE07DB for ; Thu, 15 Dec 2022 09:03:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D3241340E77 for ; Thu, 15 Dec 2022 09:03:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 13444779 for ; Thu, 15 Dec 2022 09:03:34 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1671094953.9c67a37fc7709c9e314bc56ccdf7727bee02fc92.grobian@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: / X-VCS-Repository: proj/portage-utils X-VCS-Files: main.c X-VCS-Directories: / X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: 9c67a37fc7709c9e314bc56ccdf7727bee02fc92 X-VCS-Branch: master Date: Thu, 15 Dec 2022 09:03:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 57175cbe-c73c-4772-9848-237e9e767fd2 X-Archives-Hash: ca25304b2597a97b5680d14c1e64ac3d commit: 9c67a37fc7709c9e314bc56ccdf7727bee02fc92 Author: Krzesimir Nowak microsoft com> AuthorDate: Wed Dec 14 11:52:25 2022 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Thu Dec 15 09:02:33 2022 +0000 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=9c67a37f main: Print the ignored parent line in warning If repo name in the parent line was empty, nothing was printed. Signed-off-by: Krzesimir Nowak microsoft.com> Signed-off-by: Fabian Groffen gentoo.org> main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.c b/main.c index 809a085..f6a39f9 100644 --- a/main.c +++ b/main.c @@ -646,6 +646,8 @@ read_portage_profile(const char *profile, env_vars vars[], set *masks) repo_name = NULL; } if (repo_name == NULL) { + /* bring back the colon to see the ignored parent line */ + *(--p) = ':'; warn("ignoring parent with unknown repo in profile %s: %s", profile, s); continue;