pySim-prog: add FIXME note to tell that writing hlr.db files is broken
The writing to osmo-hlr SQLITE files is broken since the SQLITE format has evolved over time. Let's add a FIXME note to tell that this needs fixing. Related: SYS#4120 Change-Id: I2b23f8bb9f3c2adeb48b010834057f5b4fb1e626
This commit is contained in:
@@ -623,6 +623,9 @@ def read_params_csv(opts, imsi=None, iccid=None):
|
|||||||
|
|
||||||
def write_params_hlr(opts, params):
|
def write_params_hlr(opts, params):
|
||||||
# SQLite3 OpenBSC HLR
|
# SQLite3 OpenBSC HLR
|
||||||
|
# FIXME: The format of the osmo-hlr database has evolved, so that the code below will no longer work.
|
||||||
|
print("Warning: the database format of recent OsmoHLR versions is not compatible with pySim-prog!")
|
||||||
|
|
||||||
if opts.write_hlr:
|
if opts.write_hlr:
|
||||||
import sqlite3
|
import sqlite3
|
||||||
conn = sqlite3.connect(opts.write_hlr)
|
conn = sqlite3.connect(opts.write_hlr)
|
||||||
|
|||||||
Reference in New Issue
Block a user