Typo: grep doesn't like args starting with dashes

This commit is contained in:
Alexandre Aubin 2022-01-07 22:46:15 +01:00 committed by GitHub
parent b0f756b1a8
commit 7aa840a956
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -230,7 +230,7 @@ class MyMigration(Migration):
cmd += " APT_LISTCHANGES_FRONTEND=none"
cmd += " apt dist-upgrade "
cmd += " --quiet -o=Dpkg::Use-Pty=0 --fix-broken --dry-run"
cmd += " | grep -q '-ynh-deps'"
cmd += " | grep -q 'ynh-deps'"
logger.info("Simulating upgrade...")
if os.system(cmd) == 0: