[elbe-devel] [PATCH 21/21] elbepack: soapclient: mark upload_file() as private

Thomas Weißschuh thomas.weissschuh at linutronix.de
Tue Aug 6 11:18:19 CEST 2024


The method is not used from external callers anymore,
so mark it private.

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

diff --git a/elbepack/soapclient.py b/elbepack/soapclient.py
index 076df8903701..1974e19013f2 100644
--- a/elbepack/soapclient.py
+++ b/elbepack/soapclient.py
@@ -127,7 +127,7 @@ class ElbeSoapClient:
             part = part + 1
 
     @staticmethod
-    def upload_file(append, build_dir, filename):
+    def _upload_file(append, build_dir, filename):
         size = 1024 * 1024
 
         with open(filename, 'rb') as f:
@@ -212,17 +212,17 @@ class ElbeSoapClient:
 
     def set_orig(self, builddir, orig_file):
         self.service.start_upload_orig(builddir, os.path.basename(orig_file))
-        self.upload_file(self.service.append_upload_orig, builddir, orig_file)
+        self._upload_file(self.service.append_upload_orig, builddir, orig_file)
         self.service.finish_upload_orig(builddir)
 
     def set_pdebuild(self, builddir, pdebuild_file, profile='', cross=False):
         self.service.start_pdebuild(builddir)
-        self.upload_file(self.service.append_pdebuild, builddir, pdebuild_file)
+        self._upload_file(self.service.append_pdebuild, builddir, pdebuild_file)
         self.service.finish_pdebuild(builddir, profile, cross)
 
     def set_cdrom(self, builddir, cdrom_file):
         self.service.start_cdrom(builddir)
-        self.upload_file(self.service.append_cdrom, builddir, cdrom_file)
+        self._upload_file(self.service.append_cdrom, builddir, cdrom_file)
         self.service.finish_cdrom(builddir)
 
     def get_files(self, builddir, outdir, *, pbuilder_only=False, wildcard=None):

-- 
2.46.0



More information about the elbe-devel mailing list