diff --git a/src/distromatic.c b/src/distromatic.c index 0b28748..2e048c8 100644 --- a/src/distromatic.c +++ b/src/distromatic.c @@ -1067,11 +1067,6 @@ read_configuration(const char *confFile, const char *tag) void *threadArchScan(void* arg) { int arch = *(int *)arg; - if (!quietmode) - fprintf(stdout, "%s: scanning binary packages...\n",configtag->arch[arch]); - else - logmsg(LOG_MARK, "%s binary packages check for %s:", configtag->arch[arch],configtag->tag); - if (generateHeaderList(configtag,arch)) { fprintf(stderr, "Fatal error: could not generate header list\n"); @@ -1346,6 +1341,15 @@ main(int argc, char *argv[]) logmsg(LOG_DEBUG,"cleanHTMLPackagesFiles - done"); } + warning[0]=0; + for (i = 0; i < ARCHS_MAX && configtag->arch[i]; i++) { + snprintf(&warning[strlen(warning)],PATH_MAX-strlen(warning)," %s", configtag->arch[i]); + } + if (!quietmode) + fprintf(stdout, "Scanning binary packages for archs:%s...\n",warning); + else + logmsg(LOG_MARK, "Binary packages check for archs:%s", warning); + for (i = 0; i < ARCHS_MAX && configtag->arch[i]; i++) { ptharg[i]=i; pthread_create(&pth[i],NULL,threadArchScan,&ptharg[i]);