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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6774A138334 for ; Thu, 2 Jan 2020 11:19:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 984F0E0CC8; Thu, 2 Jan 2020 11:19:18 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7F104E0CC8 for ; Thu, 2 Jan 2020 11:19:18 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 31CF334DDAC for ; Thu, 2 Jan 2020 11:19:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4FBFE37 for ; Thu, 2 Jan 2020 11:19:15 +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: <1577961147.f177ab6944e899a8444640ed125ee7f4e1f6589d.grobian@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: libq/ X-VCS-Repository: proj/portage-utils X-VCS-Files: libq/atom.c X-VCS-Directories: libq/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: f177ab6944e899a8444640ed125ee7f4e1f6589d X-VCS-Branch: master Date: Thu, 2 Jan 2020 11:19:15 +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: 8c942665-ca15-4d3a-870a-396d4391cdb2 X-Archives-Hash: 60e15da80e4daec1ed6aacb0a3983c65 commit: f177ab6944e899a8444640ed125ee7f4e1f6589d Author: Fabian Groffen gentoo org> AuthorDate: Thu Jan 2 10:32:27 2020 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Thu Jan 2 10:32:27 2020 +0000 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=f177ab69 libq/atom: also strip/ignore .tbz2 suffix (like .ebuild) Signed-off-by: Fabian Groffen gentoo.org> libq/atom.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libq/atom.c b/libq/atom.c index 946e821..e79c30a 100644 --- a/libq/atom.c +++ b/libq/atom.c @@ -118,7 +118,8 @@ atom_explode(const char *atom) strcpy(ret->CATEGORY, atom); /* eat file name crap when given an (autocompleted) path */ - if ((ptr = strstr(ret->CATEGORY, ".ebuild")) != NULL) + if ((ptr = strstr(ret->CATEGORY, ".ebuild")) != NULL || + (ptr = strstr(ret->CATEGORY, ".tbz2")) != NULL) *ptr = '\0'; /* chip off the trailing ::REPO as needed */