Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
envsetup
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mediaserver
envsetup
Commits
7c655f5c
Commit
7c655f5c
authored
5 years ago
by
Nicolas KAROLAK
Browse files
Options
Downloads
Patches
Plain Diff
fix path and some linting issues
parent
e5c4da0c
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tests/test_postgresql.py
+2
-2
2 additions, 2 deletions
tests/test_postgresql.py
utils/__init__.py
+1
-1
1 addition, 1 deletion
utils/__init__.py
utils/apt.py
+0
-2
0 additions, 2 deletions
utils/apt.py
with
3 additions
and
5 deletions
tests/test_postgresql.py
+
2
−
2
View file @
7c655f5c
...
@@ -19,8 +19,8 @@ except ImportError:
...
@@ -19,8 +19,8 @@ except ImportError:
sys
.
path
.
append
(
str
(
Path
(
__file__
).
parents
[
1
].
resolve
()))
sys
.
path
.
append
(
str
(
Path
(
__file__
).
parents
[
1
].
resolve
()))
import
utils
as
u
import
utils
as
u
# noqa: E402
from
utils.apt
import
Apt
from
utils.apt
import
Apt
# noqa: E402
def
is_ha
(
port
:
int
)
->
bool
:
def
is_ha
(
port
:
int
)
->
bool
:
...
...
This diff is collapsed.
Click to expand it.
utils/__init__.py
+
1
−
1
View file @
7c655f5c
...
@@ -180,7 +180,7 @@ def load_conf() -> dict:
...
@@ -180,7 +180,7 @@ def load_conf() -> dict:
"""
"""
conf
=
{}
conf
=
{}
base_dir
=
get_dir
(
__file__
)
base_dir
=
str
(
Path
(
get_dir
(
__file__
)
).
parent
)
files
=
(
files
=
(
(
str
(
Path
(
base_dir
,
DEFAULT_CONF_PATH
)),
True
),
(
str
(
Path
(
base_dir
,
DEFAULT_CONF_PATH
)),
True
),
(
str
(
Path
(
base_dir
,
AUTO_CONF_PATH
)),
False
),
(
str
(
Path
(
base_dir
,
AUTO_CONF_PATH
)),
False
),
...
...
This diff is collapsed.
Click to expand it.
utils/apt.py
+
0
−
2
View file @
7c655f5c
...
@@ -8,7 +8,6 @@ import utils as u
...
@@ -8,7 +8,6 @@ import utils as u
try
:
try
:
import
apt
import
apt
import
apt_pkg
except
ModuleNotFoundError
:
except
ModuleNotFoundError
:
u
.
warning
(
"
apt python module not found
"
)
u
.
warning
(
"
apt python module not found
"
)
exit
(
2
)
exit
(
2
)
...
@@ -127,4 +126,3 @@ class Apt:
...
@@ -127,4 +126,3 @@ class Apt:
upgradable_packages
=
[
p
for
p
in
self
.
installed_packages
if
p
.
is_upgradable
]
upgradable_packages
=
[
p
for
p
in
self
.
installed_packages
if
p
.
is_upgradable
]
return
upgradable_packages
return
upgradable_packages
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment