aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2012-02-15 17:13:34 +0000
committerNicolas Vigier <boklm@mageia.org>2012-02-15 17:13:34 +0000
commitad16dbd1dafba41e04a00428dc6ad83ee1651e73 (patch)
tree215f37f27433b1495b93bc1013ff2577bcb0d273 /MgaRepo
parent1adf74349898730445bd27b4e912503d03fab2b8 (diff)
downloadmgarepo-ad16dbd1dafba41e04a00428dc6ad83ee1651e73.tar
mgarepo-ad16dbd1dafba41e04a00428dc6ad83ee1651e73.tar.gz
mgarepo-ad16dbd1dafba41e04a00428dc6ad83ee1651e73.tar.bz2
mgarepo-ad16dbd1dafba41e04a00428dc6ad83ee1651e73.tar.xz
mgarepo-ad16dbd1dafba41e04a00428dc6ad83ee1651e73.zip
Fix regexp used to escape rpm macros, after problem reported on
mageia-dev mailing list by Anssi : http://www.mageia.org/pipermail/mageia-dev/2012-February/012003.html
Diffstat (limited to 'MgaRepo')
-rw-r--r--MgaRepo/log.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/MgaRepo/log.py b/MgaRepo/log.py
index 56965c5..643f397 100644
--- a/MgaRepo/log.py
+++ b/MgaRepo/log.py
@@ -148,7 +148,7 @@ class _Release(_Revision):
(self.version, self.release, self.revisions)
return line
-unescaped_macro_pat = re.compile(r"([^%])%([^%])")
+unescaped_macro_pat = re.compile(r"(^|[^%])%([^%])")
def escape_macros(text):
escaped = unescaped_macro_pat.sub("\\1%%\\2", text)