diff options
author | Jan Rękorajski | 2021-02-28 21:18:48 (GMT) |
---|---|---|
committer | Jan Rękorajski | 2021-02-28 21:18:48 (GMT) |
commit | 81d217de2cdce15ff340c293e800d082ce4d86d3 (patch) | |
tree | 8527e9e79842972a296190df6a2e73a20bf3ed75 | |
parent | fa15d944c98c4d60b368aab55d3201b0f41a1bcd (diff) | |
download | pld-ftp-admin-81d217de2cdce15ff340c293e800d082ce4d86d3.zip pld-ftp-admin-81d217de2cdce15ff340c293e800d082ce4d86d3.tar.gz |
keys() is a view in Python 3, need to convert it to list to get the first key
-rwxr-xr-x | bin/pfa-from-incoming | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/pfa-from-incoming b/bin/pfa-from-incoming index 27bee30..f86a73f 100755 --- a/bin/pfa-from-incoming +++ b/bin/pfa-from-incoming @@ -193,7 +193,7 @@ for uploadinfo in findfiles(incoming_dir + 'SRPMS'): ftpio.log("%s already present in %s; removing older files" % (srpm, ftptree)) rm(default_to + 'SRPMS/RPMS/' + srpm) f = open(default_to + 'SRPMS/.metadata/' + srpm+'.info', 'a') - bid = pkg.build.keys()[0] + bid = list(pkg.build.keys())[0] build = pkg.build[bid] f.write("info:build:%s:requester:%s\ninfo:build:%s:requester_email:%s\n" % (bid, build.requester, bid, build.requester_email)) |