[projects/pld-ftp-admin] Replace backtick syntax with repr() (python3 compat)

baggins baggins at pld-linux.org
Sun Jan 17 11:46:53 CET 2021


commit 7aec4c36547d10c790a119a1ac203eee13755a6d
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Jan 17 11:44:31 2021 +0100

    Replace backtick syntax with repr() (python3 compat)

 bin/pfa-from-incoming | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/bin/pfa-from-incoming b/bin/pfa-from-incoming
index 0023261..1274f68 100755
--- a/bin/pfa-from-incoming
+++ b/bin/pfa-from-incoming
@@ -189,7 +189,7 @@ for uploadinfo in findfiles(incoming_dir + 'SRPMS'):
         ftpio.log("%s file missing; skipping move until next round" % (srpm))
         continue
 
-    if ftptree.has_key(`pkg`):
+    if ftptree.has_key(repr(pkg)):
         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')
@@ -216,7 +216,7 @@ for arch in ftp_archs:
         srcpkg = BasePkg(uploadinfo[:-19], content = content)
         srpm = srcpkg.files['SRPMS'][0]
 
-        if not ftptree.has_key(`srcpkg`):
+        if not ftptree.has_key(repr(srcpkg)):
             continue # We require the src.rpm to be present
 
         renvr = re.compile(r'(.*)-(.*)-(.*)\.[^.]*\.rpm')
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/pld-ftp-admin.git/commitdiff/7aec4c36547d10c790a119a1ac203eee13755a6d



More information about the pld-cvs-commit mailing list