packages: check-unused-files.py - fix ignoring spec file; don't rm if there...
arekm
arekm at pld-linux.org
Sun Jul 5 15:29:33 CEST 2009
Author: arekm Date: Sun Jul 5 13:29:33 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- fix ignoring spec file; don't rm if there is nothing to rm
---- Files affected:
packages:
check-unused-files.py (1.3 -> 1.4)
---- Diffs:
================================================================
Index: packages/check-unused-files.py
diff -u packages/check-unused-files.py:1.3 packages/check-unused-files.py:1.4
--- packages/check-unused-files.py:1.3 Fri Jul 3 08:58:03 2009
+++ packages/check-unused-files.py Sun Jul 5 15:29:27 2009
@@ -35,14 +35,15 @@
for file in os.listdir(dir):
file = os.path.basename(file)
- if file in [ '.', '..', 'CVS', '.cvsignore', 'dropin', 'md5', 'adapter', 'builder', 'relup.sh', 'compile.sh', 'repackage.sh', spec ]:
+ if file in [ '.', '..', 'CVS', '.cvsignore', 'dropin', 'md5', 'adapter', 'builder', 'relup.sh', 'compile.sh', 'repackage.sh', os.path.basename(spec) ]:
continue
if file not in files:
print "Obsolete file: %s" % file
obsolete.append(file)
-print
-print "cvs rm -f %s" % " ".join(obsolete)
+if obsolete:
+ print
+ print "cvs rm -f %s" % " ".join(obsolete)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/check-unused-files.py?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list