I asked to get %p/Library/Frameworks/ into the list of good_dirs in Validation.pm. Unfortunately, the current code doesn't allow the parent %p/Library/ to exist in the .deb.
This patch does two things:
* fixes a bug where the directories populated in good_dirs don't terminate in a slash (/). This allows paths like /sw/binaries (matches /sw/bin) to validate correctly.
* fixes the check for allowed files in the .deb to allow parent directories of any directories specified in good_dirs. So, for %p/Library/Frameworks, it now allows %p/Library/ but not, for example, %p/Library/blah.
Also attached is a small test script to validate the change with a handful of test cases.