mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
PluginDownloader: Recognize any file starting with 'README' in @info.
This commit is contained in:
parent
b5ff7d511c
commit
74273b0d84
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user