[elbe-devel] [PATCH 6/9] elbepack: soapclient: import deb822 module through debian namespace

Thomas Weißschuh thomas.weissschuh at linutronix.de
Fri Jun 21 14:22:49 CEST 2024


"import deb822" is deprecated, use "import debian.deb822" instead.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 elbepack/soapclient.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/elbepack/soapclient.py b/elbepack/soapclient.py
index 475bc23ad7e3..e2a08e18102c 100644
--- a/elbepack/soapclient.py
+++ b/elbepack/soapclient.py
@@ -14,7 +14,7 @@ from datetime import datetime
 from http.client import BadStatusLine
 from urllib.error import URLError
 
-import deb822
+import debian.deb822
 
 from suds import WebFault
 from suds.client import Client
@@ -823,11 +823,11 @@ class UploadPackageAction(RepoAction):
 
         # Parse .dsc-File and append neccessary source files to files
         if filetype == '.dsc':
-            for f in deb822.Dsc(open(filename))['Files']:
+            for f in debian.deb822.Dsc(open(filename))['Files']:
                 files.append(f['name'])
 
         if filetype == '.changes':
-            for f in deb822.Changes(open(filename))['Files']:
+            for f in debian.deb822.Changes(open(filename))['Files']:
                 files.append(f['name'])
 
         # Check whether all files are available

-- 
2.45.2



More information about the elbe-devel mailing list