From 292015306bdfb622db7c05f549874ce94952b245 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Sat, 24 Jan 2009 14:07:44 +0100 Subject: [PATCH] generate_index_diffs remove commented code. if we really need it - we do have a VCS... Signed-off-by: Joerg Jaspert --- dak/generate_index_diffs.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/dak/generate_index_diffs.py b/dak/generate_index_diffs.py index 6104e8a4..f3f7a4a1 100755 --- a/dak/generate_index_diffs.py +++ b/dak/generate_index_diffs.py @@ -237,17 +237,6 @@ def genchanges(Options, outdir, oldfile, origfile, maxdiffs = 14): if upd.filesizesha1 != oldsizesha1: print "info: old file " + oldfile + " changed! %s %s => %s %s" % (upd.filesizesha1 + oldsizesha1) - # XXX this should be usable now - # - #for d in upd.history.keys(): - # df = smartopen("%s/%s" % (outdir,d)) - # act_sha1size = sizesha1(df) - # df.close() - # exp_sha1size = upd.history[d][1] - # if act_sha1size != exp_sha1size: - # print "patch file %s seems to have changed! %s %s => %s %s" % \ - # (d,) + exp_sha1size + act_sha1size - if Options.has_key("CanonicalPath"): upd.can_path=Options["CanonicalPath"] if os.path.exists(newfile): os.unlink(newfile) -- 2.39.5