Change regex expression only to match #[multilib] string (#1364)
* Changed regex expression only to match [multilib] string * Update multilib regex expression * Update regex expression Add raw string format
This commit is contained in:
parent
31e6eca3af
commit
94d611d22f
|
|
@ -325,7 +325,7 @@ class Installer:
|
||||||
|
|
||||||
def enable_multilib_repository(self):
|
def enable_multilib_repository(self):
|
||||||
# Set up a regular expression pattern of a commented line containing 'multilib' within []
|
# Set up a regular expression pattern of a commented line containing 'multilib' within []
|
||||||
pattern = re.compile("^#\\[.*multilib.*\\]$")
|
pattern = re.compile(r"^#\s*\[multilib\]$")
|
||||||
|
|
||||||
# This is used to track if the previous line is a match, so we end up uncommenting the line after the block.
|
# This is used to track if the previous line is a match, so we end up uncommenting the line after the block.
|
||||||
matched = False
|
matched = False
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue