PluginDownloader: Recognize any file starting with 'README' in @info.

This commit is contained in:
Valentin Lorentz 2012-09-16 13:01:16 +00:00
parent b5ff7d511c
commit 74273b0d84

View File

@ -148,10 +148,7 @@ class GithubRepository(GitRepository):
prefix = archive.getnames()[0]
dirname = ''.join((self._path, plugin))
for file in archive.getmembers():
if file.name == prefix + dirname + '/README.txt':
extractedFile = archive.extractfile(file)
return extractedFile.read()
elif file.name == prefix + dirname + '/README.md':
if file.name.startswith(prefix + dirname + '/README'):
extractedFile = archive.extractfile(file)
return extractedFile.read()