Browse Source

fix order of subpackages

Waldemar Brodkorb 13 years ago
parent
commit
1c2ed9b685
1 changed files with 2 additions and 1 deletions
  1. 2 1
      tools/adk/pkgmaker.c

+ 2 - 1
tools/adk/pkgmaker.c

@@ -160,6 +160,7 @@ static void iter(const char *key, const char *value, const void *obj) {
 				fprintf(config, "source \"package/%s/Config.in.manual\"\n", buf);
 			} else {
 				subpkg = strtok(buf, "|");
+				subpkg[strlen(subpkg)-1] = '\0';
 				pkg = strtok(NULL, "|");
 				fprintf(config, "source \"package/pkgconfigs.d/%s/Config.in.%s\"\n", pkg, subpkg);
 			}
@@ -525,7 +526,7 @@ int main() {
 						fatal_error("failed to create path variable.");
 					section = fopen(spath, "a");
 					if (section != NULL) {
-						fprintf(section, "%s|%s\n", token, pkgdirp->d_name);
+						fprintf(section, "%s |%s\n", token, pkgdirp->d_name);
 						fclose(section);
 					}
 				} else