Only run dependency extractors on files with attached attributes
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 17 Feb 2010 15:12:52 +0000 (17:12 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 17 Feb 2010 15:12:52 +0000 (17:12 +0200)
- looking at file colors still works as every relevant type has
  RPMFC_INCLUDE set but this includes various things we might not have
  attributes for, just avoids unnecessary work and is more obvious this way
- should really have been in commit ad2c8485ea109d37a2fb8ee9ed5f688eef282bf8

build/rpmfc.c

index 668cd19..aae376b 100644 (file)
@@ -833,7 +833,9 @@ rpmRC rpmfcApply(rpmfc fc)
            }
        }
 
-       if (fc->fcolor->vals[fc->ix])
+       if (fc->fattrs[fc->ix] == NULL)
+           continue;
+
        for (fcat = rpmfcApplyTable; fcat->func != NULL; fcat++) {
            ARGV_t applyAttrs = NULL;
            argvSplit(&applyAttrs, fcat->attrs, ",");