1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

o Fix patch #3676 from patch kit p with patch [2] from [1]: BT/fileTP

HTTP header check

  [1] http://savannah.nongnu.org/patch/?func=detailitem&item_id=3676
  [2] file 3676_2-fix.patch

o Bump PORTREVISION
This commit is contained in:
Mario Sergio Fujikawa Ferreira 2005-01-31 02:47:22 +00:00
parent f5c3602bd6
commit 43a47aa881
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=127752
4 changed files with 38 additions and 2 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= mldonkey
PORTVERSION= 2.5.28.p
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES+= net
MASTER_SITES= http://download.berlios.de/pub/mldonkey/spiralvoice/cvs/
PKGNAMESUFFIX= -devel

View File

@ -0,0 +1,18 @@
--- src/networks/fileTP/fileTPInteractive.ml.orig Mon Jan 31 00:29:00 2005
+++ src/networks/fileTP/fileTPInteractive.ml Mon Jan 31 00:32:08 2005
@@ -354,13 +354,13 @@
let rec op_network_parse_url url =
lprintf "filetp.op_network_parse_url\n";
- let location_regexp = "Location: \([^\n]+\)\n" in
+ let location_regexp = "Location: \\(.*\\)" in
let real_url = get_regexp_string url (Str.regexp location_regexp) in
lprintf "real url: %s\n" real_url;
if (is_http_torrent url real_url) then false else
if (String2.check_prefix real_url "http://") then (
lprintf "http download\n";
- let length_regexp = "Content-Length: \([0-9]+\)\n" in
+ let length_regexp = "Content-Length: \\(.*\\)" in
try let length = get_regexp_int url (Str.regexp length_regexp) in
if (length > 0) then begin
download_file real_url; true

View File

@ -7,7 +7,7 @@
PORTNAME= mldonkey
PORTVERSION= 2.5.28.p
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES+= net
MASTER_SITES= http://download.berlios.de/pub/mldonkey/spiralvoice/cvs/
PKGNAMESUFFIX= -devel

View File

@ -0,0 +1,18 @@
--- src/networks/fileTP/fileTPInteractive.ml.orig Mon Jan 31 00:29:00 2005
+++ src/networks/fileTP/fileTPInteractive.ml Mon Jan 31 00:32:08 2005
@@ -354,13 +354,13 @@
let rec op_network_parse_url url =
lprintf "filetp.op_network_parse_url\n";
- let location_regexp = "Location: \([^\n]+\)\n" in
+ let location_regexp = "Location: \\(.*\\)" in
let real_url = get_regexp_string url (Str.regexp location_regexp) in
lprintf "real url: %s\n" real_url;
if (is_http_torrent url real_url) then false else
if (String2.check_prefix real_url "http://") then (
lprintf "http download\n";
- let length_regexp = "Content-Length: \([0-9]+\)\n" in
+ let length_regexp = "Content-Length: \\(.*\\)" in
try let length = get_regexp_int url (Str.regexp length_regexp) in
if (length > 0) then begin
download_file real_url; true