diff --git a/src/Config.py b/src/Config.py index 7771f6e2..c8182591 100644 --- a/src/Config.py +++ b/src/Config.py @@ -13,7 +13,7 @@ class Config(object): def __init__(self, argv): self.version = "0.7.0" - self.rev = 4175 + self.rev = 4176 self.argv = argv self.action = None self.pending_changes = {} diff --git a/update.py b/update.py index 9b1c634c..0dfff297 100644 --- a/update.py +++ b/update.py @@ -62,7 +62,7 @@ def update(): continue # Keep plugin disabled/enabled status - match = re.match("plugins/([^/]+)", dest_path) + match = re.match(re.escape(source_path) + "/plugins/([^/]+)", dest_path) if match: plugin_name = match.group(1).replace("disabled-", "") if plugin_name in plugins_enabled: # Plugin was enabled @@ -112,4 +112,4 @@ def update(): if __name__ == "__main__": sys.path.insert(0, os.path.join(os.path.dirname(__file__), "src")) # Imports relative to src - update() \ No newline at end of file + update()