Change in pysim[master]: filesystem: make sure the card is in a defined state

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

dexter gerrit-no-reply at lists.osmocom.org
Mon Nov 8 15:46:25 UTC 2021


dexter has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/26163 )


Change subject: filesystem: make sure the card is in a defined state
......................................................................

filesystem: make sure the card is in a defined state

When the runtime state is created there is already some interaction with
the card. Lets make sure that the card is in a defined state when we
leave the constructor of the RuntimeState.

Change-Id: I986204964903069bcce781afdbf3c5d26682b749
Related: OS#5274
---
M pySim/filesystem.py
1 file changed, 4 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/63/26163/1

diff --git a/pySim/filesystem.py b/pySim/filesystem.py
index 0387de2..3297858 100644
--- a/pySim/filesystem.py
+++ b/pySim/filesystem.py
@@ -1077,6 +1077,10 @@
             self.mf.add_file(f)
         self.conserve_write = True
 
+        # make sure that when the runtime state is created, the card is also
+        # in a defined state.
+        self.reset()
+
     def _match_applications(self):
         """match the applications from the profile with applications on the card"""
         apps_profile = self.profile.applications

-- 
To view, visit https://gerrit.osmocom.org/c/pysim/+/26163
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I986204964903069bcce781afdbf3c5d26682b749
Gerrit-Change-Number: 26163
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211108/e969da65/attachment.htm>


More information about the gerrit-log mailing list