summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2020-08-06 23:01:02 +0200
committerChristoph Berg <myon@debian.org>2020-08-06 23:01:02 +0200
commit4ff6c01aa7f9ae1b8db63d192b5e664dcfd1ea69 (patch)
tree794be3d85ce46e81456e5f97f7ec5c2017ca288f /debian
parent0b8659650baf72c044f8190bce1f4b803ad04a80 (diff)
Lots of python3 porting missing, tested so far: Baofeng UV-5R.debian/1%20200227+py3+20200213-1
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog5
-rw-r--r--debian/patches/py3-fixes11
2 files changed, 14 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog
index dc45049..0605d78 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,9 +1,10 @@
-chirp (1:20200227+py3+20200213-1) UNRELEASED; urgency=medium
+chirp (1:20200227+py3+20200213-1) unstable; urgency=medium
* Switch to upstream py3 branch based on python3-wxgtk4.0.
(Closes: #885265, #936299)
+ * Lots of python3 porting missing, tested so far: Baofeng UV-5R.
- -- Christoph Berg <myon@debian.org> Tue, 31 Mar 2020 18:00:00 +0200
+ -- Christoph Berg <myon@debian.org> Thu, 06 Aug 2020 22:59:46 +0200
chirp (1:20200227-1) unstable; urgency=medium
diff --git a/debian/patches/py3-fixes b/debian/patches/py3-fixes
index 092d5bb..087a266 100644
--- a/debian/patches/py3-fixes
+++ b/debian/patches/py3-fixes
@@ -9,3 +9,14 @@
"""Sets the parameters to use for the query"""
self._lat = lat
self._lon = lon
+--- a/chirp/drivers/uv5r.py
++++ b/chirp/drivers/uv5r.py
+@@ -587,7 +587,7 @@ def _do_download(radio):
+ data += _read_block(radio, i, 0x40, False)
+
+ if append_model:
+- data += radio.MODEL.ljust(8)
++ data += bytes(radio.MODEL.encode('utf-8').ljust(8))
+
+ LOG.debug("done.")
+ return memmap.MemoryMapBytes(data)