mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 20:52:42 +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]
|
prefix = archive.getnames()[0]
|
||||||
dirname = ''.join((self._path, plugin))
|
dirname = ''.join((self._path, plugin))
|
||||||
for file in archive.getmembers():
|
for file in archive.getmembers():
|
||||||
if file.name == prefix + dirname + '/README.txt':
|
if file.name.startswith(prefix + dirname + '/README'):
|
||||||
extractedFile = archive.extractfile(file)
|
|
||||||
return extractedFile.read()
|
|
||||||
elif file.name == prefix + dirname + '/README.md':
|
|
||||||
extractedFile = archive.extractfile(file)
|
extractedFile = archive.extractfile(file)
|
||||||
return extractedFile.read()
|
return extractedFile.read()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user