Commits

Michał Górny committed 4b3f279

Support package.* being an empty directory.

If package.* is a directory, and it is empty, create the initial file
named 'flaggie' instead of raising IndexError.

Comments (0)

Files changed (1)

lib/flaggie/packagefile.py

 
 		if os.path.isdir(self._path):
 			files = sorted(glob.glob(os.path.join(self._path, '*')))
+			if not files:
+				files = [os.path.join(self._path, 'flaggie')]
 		else:
 			files = [self._path]