From 1c2ed9b6851c9cbe42ba02ccdb426b893c838bfe Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 18 Sep 2010 20:25:33 +0200 Subject: fix order of subpackages --- tools/adk/pkgmaker.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/adk') 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 -- cgit v1.2.3