commit: f177ab6944e899a8444640ed125ee7f4e1f6589d Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> AuthorDate: Thu Jan 2 10:32:27 2020 +0000 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> 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 <grobian <AT> 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 */