Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Pepelux committed Jun 18, 2024
1 parent c0973c3 commit 8ef7dbb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions src/sippts/lib/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1125,6 +1125,12 @@ def load_cve_version():
import sysconfig
path = sysconfig.get_paths()["purelib"] + '/sippts/data/cve.csv'

if not os.path.isfile(path):
path = path.replace('/usr/', '/usr/local/').replace('site-packages', 'dist-packages')

if not os.path.isfile(path):
return 'Unknown'

with open(path) as f:
line = f.readline().strip('\n')

Expand All @@ -1139,6 +1145,12 @@ def load_cve():
import sysconfig
path = sysconfig.get_paths()["purelib"] + '/sippts/data/cve.csv'

if not os.path.isfile(path):
path = path.replace('/usr/', '/usr/local/').replace('site-packages', 'dist-packages')

if not os.path.isfile(path):
return []

cve = []

f = open(path, 'r')
Expand Down
2 changes: 1 addition & 1 deletion src/sippts/lib/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
BWHITE = '\033[1;37;20m'
WHITE = '\033[0;37;20m'

local_version = '4.0.4'
local_version = '4.0.5'

def get_sippts_args():
try:
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0.4
4.0.5

0 comments on commit 8ef7dbb

Please sign in to comment.