commit: 39c083580b63e1e80d952e91ae3155739034632b
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 20 23:54:38 2015 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> 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;
}
}