Code: Select all
sudo find /usr -path "*/python*/*/deluge/log.py" -exec sed -i 's/stack_info=False/*args, **kwargs/' {} \;
sudo find /usr -path "*deluge/i18n/util.py" -exec sed -i 's/names='ngettext'/names=['ngettext']/' {} \;
sudo find /usr -path "*deluge/i18n/util.py" -exec sed -i '/bind_text/d' {} \;
sudo find /usr -path "*/deluge/core/core.py" -exec sh -c 'curl https://github.com/deluge-torrent/deluge/commit/89189adb24321c3db6bfa816ec557d7d8367ba24.patch | grep -v 22,3 | patch {}' \;
Edit: Added one extra I missed(last one, fixing cache errors on libtorrent 2.x).