From: Joerg Jaspert Date: Sat, 24 Jan 2009 13:07:44 +0000 (+0100) Subject: generate_index_diffs X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=292015306bdfb622db7c05f549874ce94952b245;p=dak.git generate_index_diffs remove commented code. if we really need it - we do have a VCS... Signed-off-by: Joerg Jaspert --- 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)