Author: poeml Date: 2009-06-27 11:31:46 -0600 (Sat, 27 Jun 2009) New Revision: 7630 Modified: trunk/tools/download-redirector-v2/tools/metalink-hasher.py Log: metalink-hasher: - improve on the last commit in that the sorting is done in the place where I intended to do it, and not in the wrong place (where it doesn't matters). Fixes hashes to be created in order again. Modified: trunk/tools/download-redirector-v2/tools/metalink-hasher.py =================================================================== --- trunk/tools/download-redirector-v2/tools/metalink-hasher.py 2009-06-27 13:52:43 UTC (rev 7629) +++ trunk/tools/download-redirector-v2/tools/metalink-hasher.py 2009-06-27 17:31:46 UTC (rev 7630) @@ -204,7 +204,7 @@ unlinked_files += 1 # removal of obsolete directories else: - if i not in sorted(src_names): + if i not in src_names: if os.path.isdir(i_path): print 'Recursively removing obsolete directory %r' % i_path if not opts.dry_run: @@ -216,7 +216,7 @@ os.unlink(i_path) unlinked_files += 1 - for src_name in src_names: + for src_name in sorted(src_names): src = os.path.join(src_dir, src_name) _______________________________________________ Opensuse-svn mailing list Opensuse-svn_at_forge.novell.com http://forge.novell.com/mailman/listinfo/opensuse-svn _______________________________________________ mirrorbrain-commits mailing list Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/ Note: To remove yourself from this list, send a mail with the content unsubscribe to the address mirrorbrain-commits-request_at_mirrorbrain.orgReceived on 2009-06-27Z17:32:30
This archive was generated by hypermail 2.2.0 : 2009-07-10Z19:18:13 GMT