aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-02-20 18:54:38 -0500
committerMike Frysinger <vapier@gentoo.org>2015-02-20 18:54:38 -0500
commit39c083580b63e1e80d952e91ae3155739034632b (patch)
tree72e8e4d0bec6bf97a3a02bd4c9e854d92776b594
parenttests: atom_explode: update cache location (diff)
downloadportage-utils-39c083580b63e1e80d952e91ae3155739034632b.tar.gz
portage-utils-39c083580b63e1e80d952e91ae3155739034632b.tar.bz2
portage-utils-39c083580b63e1e80d952e91ae3155739034632b.zip
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.
-rw-r--r--quse.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/quse.c b/quse.c
index 8ee37f4d..825fba31 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;
}
}