getpelican/pelican — pull request #476 by tbunnyman (2012-08-23 19:51:06+00:00)
Title: Fix autorun inf loop

This adds a check to the files_changed method and if an empty array is returned when checking for valid files it now raises a new NoFilesException that is in Utils.
main() now check for this new exception and throws a warning ONCE instead of rapidly. I used a switch to toggle if the error should be displayed that gets reset every time pelican ACTUALLY regenerates.

Unittests are updated to replicate the problem and make sure the appropriate exception is thrown.
Functionally tested (Mac OS X 10.7.4, Tmp VirtualEnv, Python 2.7.1)