PluginDownloader: Recognize README.md in @info.

This commit is contained in:
Valentin Lorentz 2012-09-16 12:53:34 +00:00
parent e43700d12d
commit b5ff7d511c

View File

@ -151,6 +151,9 @@ class GithubRepository(GitRepository):
if file.name == prefix + dirname + '/README.txt': if file.name == prefix + dirname + '/README.txt':
extractedFile = archive.extractfile(file) extractedFile = archive.extractfile(file)
return extractedFile.read() return extractedFile.read()
elif file.name == prefix + dirname + '/README.md':
extractedFile = archive.extractfile(file)
return extractedFile.read()
def _getWritableDirectoryFromList(self, directories): def _getWritableDirectoryFromList(self, directories):
for directory in directories: for directory in directories: