Author: fw Date: 2007-09-03 07:44:07 +0000 (Mon, 03 Sep 2007) New Revision: 6473 Modified: bin/dsa2list Log: * bin/dsa2list: Ignore non-existent files. Reverse output order to match file order. Modified: bin/dsa2list ==================================================================--- bin/dsa2list 2007-09-02 23:42:46 UTC (rev 6472) +++ bin/dsa2list 2007-09-03 07:44:07 UTC (rev 6473) @@ -111,5 +111,13 @@ if len(sys.argv) == 1: process_file(sys.stdin) else: - for x in sys.argv[1:]: + l = sys.argv[1:] + l.reverse() + def is_bad(f): + if os.path.exists(f): + return True + sys.stderr.write("error: file does not exist: %s\n" % f) + return False + l = filter(is_bad, l) + for x in l: process_file(file(x))