]> git.pld-linux.org Git - projects/pld-ftp-admin.git/commitdiff
keys() is a view in Python 3, need to convert it to list to get the first key
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 28 Feb 2021 21:18:48 +0000 (22:18 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 28 Feb 2021 21:18:48 +0000 (22:18 +0100)
bin/pfa-from-incoming

index 27bee3068a80fc3cc0aaa9dca0f578e43d014899..f86a73f52dab1312d839def7f96ae50d62dfe082 100755 (executable)
@@ -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))
This page took 0.333974 seconds and 4 git commands to generate.