bullseye migration: in venv / pip freeze backup mechanism, remove the venv_ignore stuff because it's not relevant anymore

This commit is contained in:
Alexandre Aubin 2022-08-07 19:06:53 +02:00 committed by GitHub
parent 5a3911c65f
commit f83a357d33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,7 +31,6 @@ N_NEXT_DEBAN = 11
N_NEXT_YUNOHOST = 11
VENV_REQUIREMENTS_SUFFIX = ".requirements_backup_for_bullseye_upgrade.txt"
VENV_IGNORE = "ynh_migration_no_regen"
def _get_all_venvs(dir, level=0, maxlevel=3):
@ -48,8 +47,6 @@ def _get_all_venvs(dir, level=0, maxlevel=3):
for file in os.listdir(dir):
path = os.path.join(dir, file)
if os.path.isdir(path):
if os.path.isfile(os.path.join(path, VENV_IGNORE)):
continue
activatepath = os.path.join(path,"bin", "activate")
if os.path.isfile(activatepath):
content = read_file(activatepath)