Add debug output for file attributes
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 18 Feb 2010 10:26:03 +0000 (12:26 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 18 Feb 2010 10:26:03 +0000 (12:26 +0200)
build/rpmfc.c

index 52f9ebc..248b2f0 100644 (file)
@@ -615,12 +615,20 @@ assert(fx < fc->fcdictx->nvals);
        cx = fc->fcdictx->vals[fx];
 assert(fx < fc->fcolor->nvals);
        fcolor = fc->fcolor->vals[fx];
+       ARGV_t fattrs = fc->fattrs[fx];
 
        fprintf(fp, "%3d %s", fx, fc->fn[fx]);
        if (fcolor != RPMFC_BLACK)
                fprintf(fp, "\t0x%x", fc->fcolor->vals[fx]);
        else
                fprintf(fp, "\t%s", fc->cdict[cx]);
+       if (fattrs) {
+           char *attrs = argvJoin(fattrs, ",");
+           fprintf(fp, " [%s]", attrs);
+           free(attrs);
+       } else {
+           fprintf(fp, " [none]");
+       }
        fprintf(fp, "\n");
 
        if (fc->fddictx == NULL || fc->fddictn == NULL)