Projects
osmocom:master
pyosmocom
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 9
View file
commit_0520482e82f917fc3d7b57deaeda9fbb7a338e25.txt
Added
View file
commit_3337030e2170c04c969ccc28e038ea6db652627c.txt
Deleted
View file
pyosmocom_0.0.6.209.3337.dsc -> pyosmocom_0.0.6.210.0520.dsc
Changed
@@ -2,7 +2,7 @@ Source: pyosmocom Binary: python3-pyosmocom-doc, python3-pyosmocom Architecture: all -Version: 0.0.6.209.3337 +Version: 0.0.6.210.0520 Maintainer: Osmocom team <openbsc@lists.osmocom.org> Homepage: https://osmocom.org/projects/pyosmocom/wiki Standards-Version: 3.9.8 @@ -13,8 +13,8 @@ python3-pyosmocom deb python optional arch=all python3-pyosmocom-doc deb doc optional arch=all Checksums-Sha1: - 45b54bcb2b317a9e34dfccdc6a50c34c147e32f8 32848 pyosmocom_0.0.6.209.3337.tar.xz + 2b3f0ebf159cd88a876a9b0948bc3856548d6737 32952 pyosmocom_0.0.6.210.0520.tar.xz Checksums-Sha256: - 87b66dc9f07bd6951acf8221ddc7152ac874f7ce7fe83315dd326b6d973cb7fe 32848 pyosmocom_0.0.6.209.3337.tar.xz + deb904664df47fec54952403c752fc6ea37ac0b5fd92707716c64111201baa6b 32952 pyosmocom_0.0.6.210.0520.tar.xz Files: - 3ce184bb38182cdd43ba7182f61148d8 32848 pyosmocom_0.0.6.209.3337.tar.xz + 38ebf1b77e93811c80f41d324ae9a47f 32952 pyosmocom_0.0.6.210.0520.tar.xz
View file
pyosmocom_0.0.6.209.3337.tar.xz/.tarball-version -> pyosmocom_0.0.6.210.0520.tar.xz/.tarball-version
Changed
@@ -1 +1 @@ -0.0.6.209-3337 +0.0.6.210-0520
View file
pyosmocom_0.0.6.209.3337.tar.xz/debian/changelog -> pyosmocom_0.0.6.210.0520.tar.xz/debian/changelog
Changed
@@ -1,8 +1,8 @@ -pyosmocom (0.0.6.209.3337) unstable; urgency=medium +pyosmocom (0.0.6.210.0520) unstable; urgency=medium * Automatically generated changelog entry for building the Osmocom master feed - -- Osmocom OBS scripts <info@osmocom.org> Wed, 09 Oct 2024 09:43:11 +0000 + -- Osmocom OBS scripts <info@osmocom.org> Tue, 26 Nov 2024 12:03:46 +0000 pyosmocom (0.0.6) unstable; urgency=medium
View file
pyosmocom_0.0.6.209.3337.tar.xz/src/osmocom/construct.py -> pyosmocom_0.0.6.210.0520.tar.xz/src/osmocom/construct.py
Changed
@@ -262,20 +262,20 @@ return super()._encode(obj, context, path) class PlmnAdapter(BcdAdapter): - """convert a bytes(3) type to BCD string like 262-02 or 262-002.""" + """convert a bytes(3) type to BCD string like 262-02 or 262-002 as specified in 3GPP TS 24.008 ยง 10.5.1.3.""" def _decode(self, obj, context, path): bcd = super()._decode(obj, context, path) if bcd3 == 'f': return '-'.join(bcd:3, bcd4:) else: - return '-'.join(bcd:3, bcd3:) + return '-'.join(bcd:3, bcd4:6+bcd3) def _encode(self, obj, context, path): l = obj.split('-') if len(l1) == 2: bcd = l0 + 'f' + l1 else: - bcd = l0 + l1 + bcd = l0 + l12 + l10:2 return super()._encode(bcd, context, path) class InvertAdapter(Adapter):
View file
pyosmocom_0.0.6.209.3337.tar.xz/tests/test_construct.py -> pyosmocom_0.0.6.210.0520.tar.xz/tests/test_construct.py
Changed
@@ -113,6 +113,22 @@ re_enc = ad._encode(exp_dec, None, None) self.assertEqual(re_enc, enc) + def test_plmn_adapter(self): + ad = PlmnAdapter(Bytes(3)) + td = + (bytes.fromhex('62f210'),'262-01'), + (bytes.fromhex('21f354'),"123-45"), + (bytes.fromhex('216354'),"123-456"), + (bytes.fromhex('030251'),"302-150") + + for enc, exp_dec in td: + with self.subTest(type='decode', name=exp_dec): + dec = ad._decode(enc, None, None) + self.assertEqual(dec, exp_dec) + with self.subTest(type='encode', name=exp_dec): + re_enc = ad._encode(exp_dec, None, None) + self.assertEqual(re_enc, enc) + class TestAsn1DerInteger(unittest.TestCase):
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.