pld-ftp-admin: scripts/from-incoming.py Catch src.rpm moving error, too.

arekm arekm at pld-linux.org
Thu May 8 14:30:58 CEST 2008


Author: arekm                        Date: Thu May  8 12:30:58 2008 GMT
Module: pld-ftp-admin                 Tag: HEAD
---- Log message:
Catch src.rpm moving error, too.

---- Files affected:
pld-ftp-admin/scripts:
   from-incoming.py (1.14 -> 1.15) 

---- Diffs:

================================================================
Index: pld-ftp-admin/scripts/from-incoming.py
diff -u pld-ftp-admin/scripts/from-incoming.py:1.14 pld-ftp-admin/scripts/from-incoming.py:1.15
--- pld-ftp-admin/scripts/from-incoming.py:1.14	Wed Feb 27 20:57:27 2008
+++ pld-ftp-admin/scripts/from-incoming.py	Thu May  8 14:30:52 2008
@@ -183,7 +183,12 @@
                 move_noarch(f, arch, rpm, dstpkg)
             else:
                 f.write("file:%s:%s\n" % (arch, rpm))
-                mv(incoming_dir+arch+'/'+rpm, default_to+arch+'/RPMS')
+                try:
+                    mv(incoming_dir+arch+'/'+rpm, default_to+arch+'/RPMS')
+                except OSError, e:
+                    l = "Moving %s to %s problem: %s" % (incoming_dir+arch+'/'+rpm, default_to+arch+'/RPMS', e)
+                    ftpio.log(l)
+                    print l
         f.close()
 
         rm(incoming_dir+arch+'/'+uploadinfo)
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/pld-ftp-admin/scripts/from-incoming.py?r1=1.14&r2=1.15&f=u



More information about the pld-cvs-commit mailing list