From d02e76b7d700ca3816e8ad7848a9dc97a265b810 Mon Sep 17 00:00:00 2001 From: fizwit Date: Thu, 2 Jul 2020 08:31:15 -0700 Subject: [PATCH] framework bug --- framework.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/framework.py b/framework.py index 0714cc1..c4f5197 100755 --- a/framework.py +++ b/framework.py @@ -79,7 +79,7 @@ def __init__(self, args): try: self.versionsuffix = eb.versionsuffix % self.interpolate except AttributeError: - self.versionsuffix = "" + self.versionsuffix = "" self.detect_language(eb) if not self.lang: print('Wow language is unknown!') @@ -92,15 +92,16 @@ def __init__(self, args): sys.stderr.write('debug - modulename: %s\n' % self.modulename) sys.stderr.write('debug - file: %s\n' % filename[:-3]) self.dependencies = None - if 'eb.dependancies'.isidentifier(): + try: self.dependencies = eb.dependencies - self.biocver = None + except AttributeError: + print('WARNING: no dependencies defined!') if self.lang == 'R': try: self.biocver = eb.local_biocver except AttributeError: print('WARNING: BioCondutor version is not set in easyconfig; local_biocver ') - print('framwork-biocver: {}'.format(self.biocver)) + sys.exit(1) self.check_eb_package_name(args.easyconfig) self.out = open(args.easyconfig[:-3] + ".update", 'w')