admin: distfiles/cleaner/lister - avoid listing files twice

baggins baggins at pld-linux.org
Wed Apr 26 19:20:35 CEST 2006


Author: baggins                      Date: Wed Apr 26 17:20:35 2006 GMT
Module: admin                         Tag: HEAD
---- Log message:
- avoid listing files twice

---- Files affected:
admin/distfiles/cleaner:
   lister (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: admin/distfiles/cleaner/lister
diff -u admin/distfiles/cleaner/lister:1.2 admin/distfiles/cleaner/lister:1.3
--- admin/distfiles/cleaner/lister:1.2	Wed Apr 26 19:12:27 2006
+++ admin/distfiles/cleaner/lister	Wed Apr 26 19:20:30 2006
@@ -70,7 +70,8 @@
 cd -
 rm -rf SPECS
 
-sort $LISTFILES | uniq >>active-list-distfiles
+sort $LISTFILES active-list-distfiles | uniq >>active-list-distfiles.tmp
+mv -f active-list-distfiles.tmp active-list-distfiles
 rm -f $LISTFILES
 
 $D=$(date +%Y-%M-%d)
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/admin/distfiles/cleaner/lister?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list