Skip to content

Commit

Permalink
fix slice error (division now returns float) when working with long p…
Browse files Browse the repository at this point in the history
…ackagelists.
  • Loading branch information
lethliel committed Jun 7, 2018
1 parent d8751be commit 6d0b207
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion osc/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ def __download_cpio_archive(self, apiurl, project, repo, arch, package, **pkgs):
if len(keys) == 1:
raise oscerr.APIError('unable to fetch cpio archive: '
'server always returns code 414')
n = len(pkgs) / 2
n = int(len(pkgs) / 2)

new_pkgs = dict([(k, pkgs[k]) for k in keys[:n]])
self.__download_cpio_archive(apiurl, project, repo, arch,
package, **new_pkgs)
Expand Down

2 comments on commit 6d0b207

@z3ntu
Copy link
Contributor

@z3ntu z3ntu commented on 6d0b207 Jul 11, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lethliel Could you please at least cherry-pick b730f88 if you don't want to just merge master into this branch? I encountered that problem even with the python3 branch and that commit fixed it there too.

@lethliel
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@z3ntu: You mean the SSL Resumption fix? I will cherry pick it into my branch of course.
I will start to merge the complete master branch into my branch next week,

Please sign in to comment.