Fix explicit directory %attr() when %defattr() is active (RhBug:481875)
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 28 Jun 2011 10:01:59 +0000 (13:01 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 28 Jun 2011 10:17:30 +0000 (13:17 +0300)
commit09efbe9656bed123dcfb240a7d94906b981a65d1
tree7e08cc5fbc4124b0bab2a305e38c7777c17e94e1
parentb11647214853dbc877972a91ebee116aa32d5bfc
Fix explicit directory %attr() when %defattr() is active (RhBug:481875)

- parseForAttr() doesn't know whether it's dealing with a directory or
  a file, so it can't know which defaults it should use.
  Move all the decision making on which of the explicit/default/implicit
  attributes into addFile() where we do know what kind of entry we're
  dealing with, and only parse in parseForAttr().
- Update the test-case status to expect success now.
build/files.c
tests/rpmbuild.at