avoid use of 'import' in BFAST easyconfigs, just strip of 'a' from version#4764
avoid use of 'import' in BFAST easyconfigs, just strip of 'a' from version#4764boegel merged 2 commits intoeasybuilders:developfrom
Conversation
|
@vanzod please review? It's less generic, but certainly better than having an |
|
Test report by @boegel |
| import string | ||
| swdir = version.rstrip(string.lowercase + string.uppercase) | ||
| # eg. http://sourceforge.net/projects/bfast/files/bfast/0.7.0/bfast-0.7.0a.tar.gz/download | ||
| source_urls = ['http://sourceforge.net/projects/bfast/files/bfast/%s/' % version.rstrip('a'), 'download'] |
There was a problem hiding this comment.
An alternative closer to the original which does not involve user intervention:
swdir = ''.join(char for char in version if not char.isalpha())
source_urls = ['http://sourceforge.net/projects/bfast/files/bfast/%s/' % swdir, 'download']
|
Test report by @boegel |
|
Thanks for the review @vanzod! |
No description provided.