From: Thierry Parmentelat Date: Fri, 20 Feb 2009 14:11:56 +0000 (+0000) Subject: cosmetic X-Git-Tag: 4.3-rc1~92 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=85ee98e6adde988dcbfd93c8d8bc55a5d1c11f60;p=build.git cosmetic --- diff --git a/module-tools.py b/module-tools.py index 76de49cf..178f8802 100755 --- a/module-tools.py +++ b/module-tools.py @@ -327,10 +327,11 @@ that for other purposes than tagging"""%topdir if os.path.isfile (attempt): return attempt else: + pattern="%s/*.spec"%self.edge_dir() try: - return glob("%s/*.spec"%self.edge_dir())[0] + return glob(pattern)[0] except: - raise Exception, 'Cannot guess specfile for module %s'%self.name + raise Exception, 'Cannot guess specfile for module %s -- pattern was %s'%(self.name,pattern) def all_specnames (self): return glob("%s/*.spec"%self.edge_dir())