laforge has uploaded this change for review. (
https://gerrit.osmocom.org/c/pysim/+/33689
)
Change subject: filesystem: Support selecting MF from MF
......................................................................
filesystem: Support selecting MF from MF
This was currently not handled in build_select_path_to(), resulting in
weird exceptions like 'Cannot determine path from MF(3f00) to MF(3f00)'
Change-Id: I41b9f047ee5dc6b91b487f370f011af994aaca04
---
M pySim/filesystem.py
1 file changed, 15 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/89/33689/1
diff --git a/pySim/filesystem.py b/pySim/filesystem.py
index 04e849b..22ff60d 100644
--- a/pySim/filesystem.py
+++ b/pySim/filesystem.py
@@ -149,6 +149,9 @@
def build_select_path_to(self, target: 'CardFile') ->
Optional[List['CardFile']]:
"""Build the relative sequence of files we need to traverse to get
from us to 'target'."""
+ # special-case handling for selecting MF while we MF is selected
+ if target == target.get_mf():
+ return [target]
cur_fqpath = self.fully_qualified_path_fobj()
target_fqpath = target.fully_qualified_path_fobj()
inter_path = []
--
To view, visit
https://gerrit.osmocom.org/c/pysim/+/33689
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I41b9f047ee5dc6b91b487f370f011af994aaca04
Gerrit-Change-Number: 33689
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newchange