From 74273b0d84cb24dfddb333b65d324799090aaef1 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 16 Sep 2012 13:01:16 +0000 Subject: [PATCH] PluginDownloader: Recognize any file starting with 'README' in @info. --- plugins/PluginDownloader/plugin.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugins/PluginDownloader/plugin.py b/plugins/PluginDownloader/plugin.py index 9b5ad9960..24a53463d 100644 --- a/plugins/PluginDownloader/plugin.py +++ b/plugins/PluginDownloader/plugin.py @@ -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()