From 39e4a4b7c5ed6c0a623f7c0c4b28fa9e7ee43633 Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Fri, 13 Sep 2024 18:02:13 +0200 Subject: [PATCH] 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 --- pySim-prog.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pySim-prog.py b/pySim-prog.py index 8d330cb7..e238b663 100755 --- a/pySim-prog.py +++ b/pySim-prog.py @@ -623,6 +623,9 @@ def read_params_csv(opts, imsi=None, iccid=None): def write_params_hlr(opts, params): # 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: import sqlite3 conn = sqlite3.connect(opts.write_hlr)