From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 79E49138A1A for ; Sat, 21 Feb 2015 00:01:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9B43DE0871; Sat, 21 Feb 2015 00:00:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 46697E0871 for ; Sat, 21 Feb 2015 00:00:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6039B340887 for ; Sat, 21 Feb 2015 00:00:19 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1558512333 for ; Sat, 21 Feb 2015 00:00:18 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1424476478.39c083580b63e1e80d952e91ae3155739034632b.vapier@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: / X-VCS-Repository: proj/portage-utils X-VCS-Files: quse.c X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 39c083580b63e1e80d952e91ae3155739034632b X-VCS-Branch: master Date: Sat, 21 Feb 2015 00:00:18 +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-Archives-Salt: 3fb6dede-1b5d-4819-a620-c4bbb7b47fbc X-Archives-Hash: fdd1398ad1de28e83b80f3c01f80f633 commit: 39c083580b63e1e80d952e91ae3155739034632b Author: Mike Frysinger gentoo org> AuthorDate: Fri Feb 20 23:54:38 2015 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Fri Feb 20 23:54:38 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/portage-utils.git;a=commit;h=39c08358 quse: drop lang.desc support This file hasn't been generated in a long time since it was migrated to the desc/linguas.desc file. --- quse.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/quse.c b/quse.c index 8ee37f4..825fba3 100644 --- a/quse.c +++ b/quse.c @@ -86,7 +86,7 @@ int quse_describe_flag(unsigned int ind, unsigned int argc, char **argv) char *buf, *p; unsigned int i, f; size_t s; - const char *search_files[] = { "use.desc", "use.local.desc", "arch.list", "lang.desc" }; + const char * const search_files[] = { "use.desc", "use.local.desc", "arch.list", }; FILE *fp[NUM_SEARCH_FILES]; DIR *d; struct dirent *de; @@ -97,8 +97,7 @@ int quse_describe_flag(unsigned int ind, unsigned int argc, char **argv) for (i = 0; i < NUM_SEARCH_FILES; ++i) { snprintf(buf, buflen, "%s/profiles/%s", portdir, search_files[i]); if ((fp[i] = fopen(buf, "r")) == NULL) - if (strcmp(search_files[i], "lang.desc") != 0) - warnp("skipping %s", search_files[i]); + warnp("skipping %s", search_files[i]); } for (i = ind; i < argc; i++) { @@ -142,14 +141,6 @@ int quse_describe_flag(unsigned int ind, unsigned int argc, char **argv) goto skip_file; } break; - - case 3: /* Languages lang.desc */ - if (!strncmp(buf, argv[i], s)) - if (buf[s] == ' ' && buf[s+1] == '-') { - printf(" %slang%s:%s%s%s: %s lingua\n", BOLD, NORM, BLUE, argv[i], NORM, buf+s+3); - goto skip_file; - } - break; } }