Try to generate fileclass in the tag ext at runtime if missing from header
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 16 Jun 2011 09:26:42 +0000 (12:26 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 16 Jun 2011 09:41:44 +0000 (12:41 +0300)
commit01b9b4048180ce28ccfceca91a7e5682e0611846
treea83f53fb1c13935665c31d28864f638325bd1507
parenta324a53527e4ecacabc33a73cfcb4c572aaefa2d
Try to generate fileclass in the tag ext at runtime if missing from header
- For non-regular files we can easily generate this information based
  on file mode + in case of symlinks, the link target is available
  in the header elsewhere. This also means --fileclass will return
  at least partial data for packages built with the external depgen.
- Clean up fileclassTag() a bit while at it, removing redundant fluff.
- Arguably this "magic" should be done inside rpmfiFClass() instead, but
  that'd require changing the API to return malloced data.
lib/tagexts.c