SVN: people/arekm/ftp_admin/clean-dups.py

arekm arekm at pld-linux.org
Fri Jun 27 11:07:01 CEST 2008


Author: arekm
Date: Fri Jun 27 11:07:01 2008
New Revision: 9827

Modified:
   people/arekm/ftp_admin/clean-dups.py
Log:
Cleanup.

Modified: people/arekm/ftp_admin/clean-dups.py
==============================================================================
--- people/arekm/ftp_admin/clean-dups.py	(original)
+++ people/arekm/ftp_admin/clean-dups.py	Fri Jun 27 11:07:01 2008
@@ -33,7 +33,7 @@
 
 
 def find_old(files):
-	return sorted(files, compare)
+    return sorted(files, compare)[1:]
 
 files = {}
 dupes = {}
@@ -65,5 +65,5 @@
 		files[name] = file
 
 for i in dupes.iterkeys():
-	for old in find_old(dupes[i])[1:]:
+	for old in find_old(dupes[i]):
 		os.system("/home/pld/admins/th/pld-ftp-admin/scripts/remove.py test %s" % old)


More information about the pld-cvs-commit mailing list