libtorrent-rasterbar: patch for magnet links, thanks nogagplz
This commit is contained in:
parent
f65dfd1021
commit
edc340c1cb
@ -1 +1,2 @@
|
||||
0448407e23f53a182311236a96b9a83b libtorrent-rasterbar-0.16.0.tar.gz
|
||||
6c7a40854a92a8a0558faa914a5111ba libtorrent.patch
|
||||
|
@ -6,12 +6,15 @@
|
||||
|
||||
name=libtorrent-rasterbar
|
||||
version=0.16.0
|
||||
release=1
|
||||
source=(http://libtorrent.googlecode.com/files/$name-$version.tar.gz)
|
||||
release=2
|
||||
source=(http://libtorrent.googlecode.com/files/$name-$version.tar.gz
|
||||
libtorrent.patch)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
|
||||
patch -p 0 -i $SRC/libtorrent.patch
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--enable-python-binding
|
||||
|
11
libtorrent-rasterbar/libtorrent.patch
Normal file
11
libtorrent-rasterbar/libtorrent.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- bindings/python/src/session.cpp (revision 6789)
|
||||
+++ bindings/python/src/session.cpp (working copy)
|
||||
@@ -153,7 +153,7 @@
|
||||
, std::vector<char>& rd, std::list<std::string>& string_storage)
|
||||
{
|
||||
// torrent_info objects are always held by an intrusive_ptr in the python binding
|
||||
- if (params.has_key("ti"))
|
||||
+ if (params.has_key("ti") && !params.get("ti").is_none())
|
||||
p.ti = extract<intrusive_ptr<torrent_info> >(params["ti"]);
|
||||
|
||||
if (params.has_key("info_hash"))
|
Loading…
Reference in New Issue
Block a user