From: PPed72 Date: Wed, 30 Aug 2017 14:38:06 +0000 (+0200) Subject: net-p2p/deluge: fix to preferences ui X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=9180e836c5fbd22c5aecde178597faa0bcaaf30e;p=gentoo.git net-p2p/deluge: fix to preferences ui Bug: https://bugs.gentoo.org/623650 --- diff --git a/net-p2p/deluge/deluge-1.3.15-r1.ebuild b/net-p2p/deluge/deluge-1.3.15-r1.ebuild new file mode 100644 index 000000000000..e76bbab14851 --- /dev/null +++ b/net-p2p/deluge/deluge-1.3.15-r1.ebuild @@ -0,0 +1,144 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +PYTHON_COMPAT=( python2_7 ) +DISTUTILS_SINGLE_IMPL=1 +PLOCALES="af ar ast be bg bn bs ca cs cy da de el en_AU en_CA en_GB eo es et eu fa fi fo fr fy ga gl he hi hr hu id is it iu ja ka kk km kn ko ku ky la lb lt lv mk ml ms nap nb nds nl nn oc pl pms pt pt_BR ro ru si sk sl sr sv ta te th tl tlh tr uk ur vi zh_CN zh_HK zh_TW" +inherit distutils-r1 eutils systemd user l10n + +DESCRIPTION="BitTorrent client with a client/server model" +HOMEPAGE="http://deluge-torrent.org/" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="git://deluge-torrent.org/${PN}.git + http://git.deluge-torrent.org/${PN}" + SRC_URI="" + KEYWORDS="~amd64 ~x86" +else + SRC_URI="http://download.deluge-torrent.org/source/${P}.tar.bz2" + KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="console geoip gtk libnotify sound webinterface" +REQUIRED_USE=" + ${PYTHON_REQUIRED_USE} + sound? ( gtk ) + libnotify? ( gtk ) +" +PATCHES=( + "${FILESDIR}/${PN}-1.3.5-disable_libtorrent_internal_copy.patch" + "${FILESDIR}/${PN}-1.3.15-r1-fix-preferences-ui.patch" +) + +CDEPEND=" +Date: Sat, 13 May 2017 00:05:48 +0100 +Subject: [GTKUI] Fix keyerror showing prefs + + * Fix the single_proxy ui to True as unlikely any users using <=0.15 + and need to have different proxy type settings. +--- + deluge/ui/gtkui/preferences.py | 7 ++----- + 1 file changed, 2 insertions(+), 5 deletions(-) + +diff --git a/deluge/ui/gtkui/preferences.py b/deluge/ui/gtkui/preferences.py +index 645ad26..efcd93d 100644 +--- a/deluge/ui/gtkui/preferences.py ++++ b/deluge/ui/gtkui/preferences.py +@@ -318,11 +318,8 @@ class Preferences(component.Component): + } + # Add proxy stuff + +- # Display workaround for single proxy in libtorrent >v0.16 +- try: +- lt_single_proxy = component.get("PreferencesManager").LT_SINGLE_PROXY +- except AttributeError: +- lt_single_proxy = False ++ # Display workaround for single proxy in libtorrent >= v0.16 ++ lt_single_proxy = True + + for t in ("peer", "web_seed", "tracker", "dht"): + if lt_single_proxy and not t == "peer": +-- +cgit v1.1 +