#! /bin/sh /usr/share/dpatch/dpatch-run ## 13_fix_btcompletedirgui_bug.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Fixes a bug that caused the piece size to be way too big. @DPATCH@ --- bittornado.orig/btcompletedirgui.py +++ bittornado/btcompletedirgui.py @@ -99,7 +99,7 @@ dlg.Destroy() return try: - ps = 2 ** (21 - self.piece_length.GetSelection()) + ps = (21 - self.piece_length.GetSelection()) CompleteDir(self.dirCtl.GetValue(), self.annCtl.GetValue(), ps) except: print_exc()