From 85ee98e6adde988dcbfd93c8d8bc55a5d1c11f60 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Fri, 20 Feb 2009 14:11:56 +0000 Subject: [PATCH] cosmetic --- module-tools.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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()) -- 2.47.0