1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 14:56:14 +01:00

Merge branch 'python3_fetch_module' of https://github.com/lethliel/osc

Explicitly "cast" the division result to an int. This is needed for the
python3 port (in python3 a division of two ints yields a float).
This commit is contained in:
Marcus Huewe 2019-01-14 17:11:16 +01:00
commit 35a909bee5

View File

@ -117,7 +117,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)