summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiziano Müller <dev-zero@gentoo.org>2007-01-10 21:30:46 +0000
committerTiziano Müller <dev-zero@gentoo.org>2007-01-10 21:30:46 +0000
commit1932ab475fdec02d71f96e882ab42a7eae9d03ee (patch)
treeada1c52426a9d165efde48f03a63ccee874b033c /net-misc/aria2/files
parentAdd missing email address for herd with name != alias. (diff)
downloadhistorical-1932ab475fdec02d71f96e882ab42a7eae9d03ee.tar.gz
historical-1932ab475fdec02d71f96e882ab42a7eae9d03ee.tar.bz2
historical-1932ab475fdec02d71f96e882ab42a7eae9d03ee.zip
Added patch to fix bittorrent exception issue (thanks to Daniel Lange).
Package-Manager: portage-2.1.2_rc4-r1
Diffstat (limited to 'net-misc/aria2/files')
-rw-r--r--net-misc/aria2/files/aria2-0.9.0-isalpha_exception.patch23
-rw-r--r--net-misc/aria2/files/digest-aria2-0.9.0-r13
2 files changed, 26 insertions, 0 deletions
diff --git a/net-misc/aria2/files/aria2-0.9.0-isalpha_exception.patch b/net-misc/aria2/files/aria2-0.9.0-isalpha_exception.patch
new file mode 100644
index 000000000000..2c0b7d8edc23
--- /dev/null
+++ b/net-misc/aria2/files/aria2-0.9.0-isalpha_exception.patch
@@ -0,0 +1,23 @@
+*** aria2-0.9.0/src/Util.cc 2006-11-06 00:04:17.000000000 +0900
+--- aria2-0.9.0+1/src/Util.cc 2007-01-11 01:55:24.000000000 +0900
+***************
+*** 213,219 ****
+ string Util::torrentUrlencode(const unsigned char* target, int len) {
+ string dest;
+ for(int i = 0; i < len; i++) {
+! if(isalpha(target[i]) || isdigit(target[i])) {
+ dest += target[i];
+ } else {
+ char temp[4];
+--- 213,221 ----
+ string Util::torrentUrlencode(const unsigned char* target, int len) {
+ string dest;
+ for(int i = 0; i < len; i++) {
+! if('0' <= target[i] && target[i] <= '9' ||
+! 'A' <= target[i] && target[i] <= 'Z' ||
+! 'a' <= target[i] && target[i] <= 'z') {
+ dest += target[i];
+ } else {
+ char temp[4];
+
+
diff --git a/net-misc/aria2/files/digest-aria2-0.9.0-r1 b/net-misc/aria2/files/digest-aria2-0.9.0-r1
new file mode 100644
index 000000000000..768cf8716abb
--- /dev/null
+++ b/net-misc/aria2/files/digest-aria2-0.9.0-r1
@@ -0,0 +1,3 @@
+MD5 f4d1e1761ee2386e5d3a6248b363267f aria2-0.9.0.tar.bz2 405772
+RMD160 3560d8f49ebc8e74f189fe520166d1e340025b2c aria2-0.9.0.tar.bz2 405772
+SHA256 65a51bfd371b78bcf1704b5754b52bfc0468aec5e218ee44cbdd9d5efcc346a6 aria2-0.9.0.tar.bz2 405772