mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
fix linter in postgresql migration
This commit is contained in:
parent
7a928ba5ad
commit
3cb1a41aa8
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
import subprocess
|
import subprocess
|
||||||
import time
|
import time
|
||||||
|
import os
|
||||||
|
|
||||||
from moulinette import m18n
|
from moulinette import m18n
|
||||||
from yunohost.utils.error import YunohostError, YunohostValidationError
|
from yunohost.utils.error import YunohostError, YunohostValidationError
|
||||||
|
@ -19,7 +20,7 @@ class MyMigration(Migration):
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
|
|
||||||
if os.system('grep -A10 "ynh-deps" /var/lib/dpkg/status | grep "Package:\|Depends:" | grep -B1 postgresql') != 0:
|
if os.system('grep -A10 "ynh-deps" /var/lib/dpkg/status | grep -E "Package:|Depends:" | grep -B1 postgresql') != 0:
|
||||||
logger.info("No YunoHost app seem to require postgresql... Skipping!")
|
logger.info("No YunoHost app seem to require postgresql... Skipping!")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue