Permit non-existent %ghost directories to be packaged (RhBug:839656)
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 1 Aug 2012 13:00:16 +0000 (16:00 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 1 Aug 2012 13:25:43 +0000 (16:25 +0300)
commitd6775a746bbaf8ddc8a91c9fae68ae91af1cc570
treea77fd5cf763efe3e7d8ed4dcaaf4741af024a4c1
parent24ad8291bbcdb523f1aa58d75e29f9ffeb484b52
Permit non-existent %ghost directories to be packaged (RhBug:839656)

- Directories can be explicitly specified via either %dir or trailing
  slash in the %files manifest, take this into account for %ghosts that
  dont exist in the buildroot. Otherwise we still assume regular file.
- Dont require explicit %attr() for missing %ghosts, let them fall
  back to %defattr() instead. If %defattr() doesn't specify a mode
  the file will be seen without any permissions at all, but that's
  not strictly an error (and same can happen with %dev() already)
build/files.c