X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=module-tools.py;h=1afe04e2d4abcfd49407cb1d850599cd57cb7020;hb=9a03bbc2fedd28c468436ee0d56a1f445e0ee669;hp=e02d052758eecd855444c11d6da32a28023a9a45;hpb=f91b1839ea2dc95b974a14714e20e0ae6a25fca9;p=build.git diff --git a/module-tools.py b/module-tools.py index e02d0527..1afe04e2 100755 --- a/module-tools.py +++ b/module-tools.py @@ -838,17 +838,17 @@ that for other purposes than tagging""" % options.workdir else: if self.options.verbose: print 'Searching for -SVNPATH or -GITPATH lines referring to /%s/\n\tin %s .. '%(self.name,tagsfile), - pattern="\A\s*(?P[^\s]+)-(SVNPATH|GITPATH)\s*(=|:=)\s*(?P[^\s]+)/%s[^\s]+"\ - %(self.name) + pattern="\A\s*%s-(SVNPATH|GITPATH)\s*(=|:=)\s*(?P[^\s]+)/%s[^\s]+"\ + %(self.name,self.name) matcher_module=re.compile(pattern) for line in tags.readlines(): attempt=matcher_module.match(line) if attempt: if line.find("-GITPATH") >= 0: - modulepath = "%s-GITPATH"%(attempt.group('make_name')) + modulepath = "%s-GITPATH"%self.name replacement = "%-32s:= %s/%s.git@%s\n"%(modulepath,attempt.group('url_main'),self.name,newname) else: - modulepath = "%s-SVNPATH"%(attempt.group('make_name')) + modulepath = "%s-SVNPATH"%self.name replacement = "%-32s:= %s/%s/tags/%s\n"%(modulepath,attempt.group('url_main'),self.name,newname) if self.options.verbose: print ' ' + modulepath, @@ -988,7 +988,7 @@ Please write a changelog for this new tag in the section above elif choice == 'f': self.patch_tags_file(tagsfile,old_tag_name,new_tag_name,fine_grain=False) elif choice == 'd': - print build.diff(f=tagsfile) + print build.diff(f=os.path.basename(tagsfile)) elif choice == 'r': build.revert(f=tagsfile) elif choice == 'c':