From: Thierry Parmentelat Date: Tue, 8 Jan 2008 20:21:03 +0000 (+0000) Subject: fix handling of trailing spaces X-Git-Tag: 4.2-rc2~298 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=cd10c4a7599e9f82674aff91f02b9e2f9fc8c100;p=build.git fix handling of trailing spaces --- diff --git a/module-tag.py b/module-tag.py index 08e35a9c..645f2e23 100755 --- a/module-tag.py +++ b/module-tag.py @@ -109,7 +109,7 @@ class Module: self.trunkdir="%s/trunk"%(self.moddir) # what to parse in a spec file self.varnames = ["name",options.version,options.taglevel] - self.varmatcher=re.compile("%define\s+(\S+)\s+(.*)") + self.varmatcher=re.compile("%define\s+(\S+)\s+(\S*)\s*") def run (self,command):