summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-09-18 20:25:33 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-09-18 20:25:33 +0200
commit1c2ed9b6851c9cbe42ba02ccdb426b893c838bfe (patch)
treeef4f98b3e3df5c625c7e53ec47effe51bbaf3d08 /tools
parent974376daa09489f589b510a382654bff07ae5a5f (diff)
fix order of subpackages
Diffstat (limited to 'tools')
-rw-r--r--tools/adk/pkgmaker.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/adk/pkgmaker.c b/tools/adk/pkgmaker.c
index 831c6c34d..155daf00a 100644
--- a/tools/adk/pkgmaker.c
+++ b/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