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

Manuel Traut manut at linutronix.de
Fri Apr 5 13:59:43 CEST 2019


On 09:05 Thu 04 Apr     , Kurt Kanzenbach wrote:
> 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>

thanks, merged into master. will become part of e4!

> ---
>  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