mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
🐛 Removed duplicate patches
This commit is contained in:
+6
-4
@@ -50,10 +50,12 @@ class Parser(object):
|
||||
patches."""
|
||||
try:
|
||||
patch_index = self._PATCHES.index(name)
|
||||
if self._PATCHES[patch_index - 1] == "-e":
|
||||
self._PATCHES[patch_index - 1] = "-i"
|
||||
else:
|
||||
self._PATCHES[patch_index - 1] = "-e"
|
||||
indices = [i for i in range(len(self._PATCHES)) if self._PATCHES[i] == name]
|
||||
for patch_index in indices:
|
||||
if self._PATCHES[patch_index - 1] == "-e":
|
||||
self._PATCHES[patch_index - 1] = "-i"
|
||||
else:
|
||||
self._PATCHES[patch_index - 1] = "-e"
|
||||
return True
|
||||
except ValueError:
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user