* morituri/common/encode.py:

Fix wrong code for checksum comparison.
This commit is contained in:
Thomas Vander Stichele
2010-04-13 22:10:06 +00:00
parent 25ed7459b1
commit cee915fbd2
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2010-04-14 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/common/encode.py:
Fix wrong code for checksum comparison.
2010-04-14 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/common/program.py:

View File

@@ -485,7 +485,7 @@ class SafeRetagTask(task.MultiSeparateTask):
c1 = self.tasks[1].checksum
c2 = self.tasks[3].checksum
self.debug('comparing checksums %08x and %08x' % (c1, c2))
if False: #c1 == c2:
if c1 == c2:
# data is fine, so we can now move
self.debug('moving temporary file to %r' % self._path)
os.rename(self._tmppath, self._path)