For bug #160310, allow \ inside `` quotes in order to prevent a false Line continuati...
authorZac Medico <zmedico@gentoo.org>
Sat, 6 Jan 2007 02:10:34 +0000 (02:10 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 6 Jan 2007 02:10:34 +0000 (02:10 -0000)
svn path=/main/trunk/; revision=5470

bin/repoman

index b274af51064fb5427fe94db7f1236221bdd5b7b9..50a2e2142317dde1ab93523a575713f1c65ce04b 100755 (executable)
@@ -1294,7 +1294,7 @@ for x in scanlist:
                trailing_whitespace = re.compile(r'.*([\S]$)')
                readonly_assignment = re.compile(r'^\s*(export\s+)?(A|CATEGORY|P|PV|PN|PR|PVR|PF|D|WORKDIR|FILESDIR|FEATURES|USE)=')
                continuation_symbol = re.compile(r'(.*[ ]+[\\][ ].*)')
-               line_continuation_quoted = re.compile(r'(\"|\')(([\w ,:;#\[\]\.`=/|\$\^\*{}()\'-])|(\\.))*\1')
+               line_continuation_quoted = re.compile(r'(\"|\'|`)(([\w ,:;#\[\]\.`=/|\$\^\*{}()\'-])|(\\.))*\1')
                line_continuation = re.compile(r'([^#]*\S)(\s+|\t)\\$')
                linenum=0
                previous_line = None
@@ -1353,7 +1353,8 @@ for x in scanlist:
                                        if match:
                                                #Excluded lines not even containing a " \" match. Good!
                                                line = re.sub(line_continuation_quoted,"\"\"",line)
-                                               #line has been edited to collapsed "" and '' quotes to "". Good!
+                                               # line has been edited to collapse "", '', and ``
+                                               # quotes to "". Good!
                                                match = continuation_symbol.match(line)
                                                if match:
                                                        #Again exclude lines not even containing a " \" match. Good!