mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-28 10:46:15 +01:00
[python3] the result of a division is a float
but we need int to continue.
This commit is contained in:
parent
7bd9ca485d
commit
017c74ba21
@ -118,7 +118,7 @@ class Fetcher:
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user