mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Remove pdb used for debug, and improve comment
This commit is contained in:
parent
ee67ebfd86
commit
8671a4c230
1 changed files with 5 additions and 6 deletions
|
@ -2905,13 +2905,12 @@ def _patch_legacy_helpers(app_folder):
|
|||
pattern, replace = regexes
|
||||
# If helper is used, attempt to patch the file
|
||||
if helper in content and pattern != "":
|
||||
try:
|
||||
content = pattern.sub(replace, content)
|
||||
replaced_stuff = True
|
||||
except Exception as e:
|
||||
import pdb; pdb.set_trace()
|
||||
content = pattern.sub(replace, content)
|
||||
replaced_stuff = True
|
||||
|
||||
# If we couldn't patch the deprecated helper, abort the install or whichever step is performed
|
||||
# If the helpert is *still* in the content, it means that we
|
||||
# couldn't patch the deprecated helper in the previous lines. In
|
||||
# that case, abort the install or whichever step is performed
|
||||
if helper in content:
|
||||
raise YunohostError("This app is likely pretty old and uses deprecated / outdated helpers that can't be migrated easily. It can't be installed anymore.")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue