[elbe-devel] [PATCH] projectmanager: fix upload of dsc files

Kurt Kanzenbach kurt at linutronix.de
Thu Apr 4 09:05:32 CEST 2019


Currently it's not possible to upload a dsc file to the project repository:

  $ elbe prjrepo upload_pkg <project> <dsc_file>
  [...]
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/elbepack/daemons/soap/faults.py", line 139, in wrapped
      return func(self, arg1, arg2, arg3)
    File "/usr/lib/python2.7/dist-packages/elbepack/daemons/soap/esoap.py", line 424, in include_package
      self.app.pm.add_deb_package(uid, filename)
    File "/usr/lib/python2.7/dist-packages/elbepack/projectmanager.py", line 506, in add_deb_package
      pkgname=pkg_name, force=True)
  TypeError: includedsc() got an unexpected keyword argument 'pkgname'

includedsc() doesn't have a pkgname parameter. Remove it.

Fixes: a02dfd19b303 ("projectmanager: allow add_deb_package() to add already existing pkg")
Signed-off-by: Kurt Kanzenbach <kurt at linutronix.de>
---
 elbepack/projectmanager.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/projectmanager.py b/elbepack/projectmanager.py
index e848d9bf261c..0e22fb7e9241 100644
--- a/elbepack/projectmanager.py
+++ b/elbepack/projectmanager.py
@@ -503,7 +503,7 @@ class ProjectManager(object):
 
         if t == 'dsc':
             ep.repo.includedsc(os.path.join(ep.builddir, filename),
-                               pkgname=pkg_name, force=True)
+                               force=True)
         elif t == 'deb':
             ep.repo.includedeb(os.path.join(ep.builddir, filename),
                                pkgname=pkg_name, force=True)
-- 
2.11.0




More information about the elbe-devel mailing list