apt-offline crashes because of python currentThread() is deprecated
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt-offline (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
apt-offline crashes from deprecation warning!?
apt-offline 1.8.4-1
python 3.10.4-0ubuntu2
Linux 5.15.0-30-generic
Ubtuntu jammy
$ apt-offline get --bundle upgrade.zip upgrade.sig
Fetching APT Data
Downloading apache2 - 95 KiB
apache2 done
Exception in thread Thread-1 (run):#
Traceback (most recent call last):
File "/usr/lib/
self.run()
File "/usr/lib/
self.
File "/usr/lib/
if threading.
File "/usr/lib/
warnings.
DeprecationWarning: currentThread() is deprecated, use current_thread() instead
btw, if apt-offline does security updates, it adds a comment at the top which makes "apt-offline get" crash.
thanks
replacing ).getName( ) current_ thread( ).name ib.py
currentThread(
with
threading.
in
AptOfflineCoreL
AptOfflineLib.py
acutally solves the problem