pld-ftp-admin: modules/ftptree.py - mark one more message as test ...
arekm
arekm at pld-linux.org
Mon Jan 9 19:10:19 CET 2006
Author: arekm Date: Mon Jan 9 18:10:19 2006 GMT
Module: pld-ftp-admin Tag: HEAD
---- Log message:
- mark one more message as test when needed
---- Files affected:
pld-ftp-admin/modules:
ftptree.py (1.29 -> 1.30)
---- Diffs:
================================================================
Index: pld-ftp-admin/modules/ftptree.py
diff -u pld-ftp-admin/modules/ftptree.py:1.29 pld-ftp-admin/modules/ftptree.py:1.30
--- pld-ftp-admin/modules/ftptree.py:1.29 Mon Jan 9 17:44:15 2006
+++ pld-ftp-admin/modules/ftptree.py Mon Jan 9 19:10:14 2006
@@ -125,7 +125,10 @@
movedany=False
for arch in self.files.keys():
if arch in dsttree[self.nvr].files.keys():
- pinfo("Arch %s for %s is already present in dest tree; removing from srctree" % (arch, self.nvr))
+ msg = ""
+ if test:
+ msg = "TEST "
+ pinfo("%sArch %s for %s is already present in dest tree; removing from srctree" % (msg, arch, self.nvr))
for rpm in self.files[arch]:
rm(self.tree.basedir+'/'+arch+'/RPMS/'+rpm, test)
else:
================================================================
---- CVS-web:
http://cvs.pld-linux.org/pld-ftp-admin/modules/ftptree.py?r1=1.29&r2=1.30&f=u
More information about the pld-cvs-commit
mailing list