Replace python-specific path-coloring hack with a generic mechanism
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 18 Feb 2010 09:47:34 +0000 (11:47 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 18 Feb 2010 09:47:34 +0000 (11:47 +0200)
commit759c03dac258121be2d3d1099c4b613f4c3c77f5
tree4f3d721815dcd1a2ff1dfce554bde01ab12f5c39
parent11ed0f75feb790287fbf7013c80a526e38dbbfe4
Replace python-specific path-coloring hack with a generic mechanism
- Use a table of regex pattern - attribute list pairs to apply any
  additional path based attributes. While the fundamental type of a file
  certainly does not depend on its location on the filesystem, its
  location *does* have attached semantics and it'd be just silly to
  ignore that fact.
- The current implementation is dumb as it ends up recompiling the regexes
  and splitting the attr strings a million times. OTOH compiling the
  regexes into the static rpmfcPathTable would be wrong as the patterns
  can contain macros and they can vary from package to package when building
  several packages on one invocation. The attribute split + regex compilation
  should be done once per rpmfc instanciation...
build/rpmfc.c