Bug#435574: debmirror: Generated url has too many slashes
severity 435574 wishlist retitle 435574 debmirror: Please support mirrors without a root directory thanks One of the redundant slashes will be removed in the upcoming version 2.0, but debmirror will still require a root directory to be set. I will see if that can be avoided at some future time. As a root directory is standard on official mirrors, I see the as a wishlist item. Cheers, FJP -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#435574: debmirror: Generated url has too many slashes
Don't think so, I'm using debmirror 20070123 on a sarge server which has libcompress-zlib-perl version 1.34-1 After playing around with realpath names, codenames and some other stuff I've got debmirror to partially mirror my local repository (some files are still being deleted tough; so I've disabled debmirror). -- Atomo64 - Raphael Please avoid sending me Word, PowerPoint or Excel attachments. See http://www.gnu.org/philosophy/no-word-attachments.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#435574: debmirror: Generated url has too many slashes
Raphael [EMAIL PROTECTED] writes: On 02/08/07, Goswin von Brederlow [EMAIL PROTECTED] wrote: Raphael Geissert [EMAIL PROTECTED] writes: Package: debmirror Version: 20070123 Severity: normal Tags: patch When executing debmirror like debmirror --host=domain.tld:8080 --method=http --root=/ the url used to download the files looks is http://domain.tld:8080/// You should have --root= there, not /. That accounts for one of the 3 /. But that probably leaves // so the bug still exists. I've tried with --root= and --root= but debmirror doesn't accept them. Right now I'm also trying to find out why it is not mirroring the files listed in the Packages files MfG Goswin Bug #435656 in libcompress-zlib-perl-2.005-1? MfG Goswin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#435574: debmirror: Generated url has too many slashes
Raphael Geissert [EMAIL PROTECTED] writes: Package: debmirror Version: 20070123 Severity: normal Tags: patch When executing debmirror like debmirror --host=domain.tld:8080 --method=http --root=/ the url used to download the files looks is http://domain.tld:8080/// You should have --root= there, not /. That accounts for one of the 3 /. But that probably leaves // so the bug still exists. MfG Goswin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#435574: debmirror: Generated url has too many slashes
On 02/08/07, Goswin von Brederlow [EMAIL PROTECTED] wrote: Raphael Geissert [EMAIL PROTECTED] writes: Package: debmirror Version: 20070123 Severity: normal Tags: patch When executing debmirror like debmirror --host=domain.tld:8080 --method=http --root=/ the url used to download the files looks is http://domain.tld:8080/// You should have --root= there, not /. That accounts for one of the 3 /. But that probably leaves // so the bug still exists. I've tried with --root= and --root= but debmirror doesn't accept them. Right now I'm also trying to find out why it is not mirroring the files listed in the Packages files MfG Goswin -- Atomo64 - Raphael Please avoid sending me Word, PowerPoint or Excel attachments. See http://www.gnu.org/philosophy/no-word-attachments.html Say NO to Microsoft Office broken standard. See http://www.noooxml.org/petition -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#435574: debmirror: Generated url has too many slashes
Package: debmirror Version: 20070123 Severity: normal Tags: patch -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 When executing debmirror like debmirror --host=domain.tld:8080 --method=http --root=/ the url used to download the files looks is http://domain.tld:8080/// This is fine with some non-micro http server which correctly resolve the three slashes to a single one. But dhttpd, for example, throws a 403 Forbidden instead. All the attachment/patch does is replace multiple slashes with a single one. Note: this bug also affects old versions - -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (500, 'testing'), (100, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.21-2-686 (SMP w/1 CPU core) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGsMwhYy49rUbZzloRAlEZAKCBiQkJr4s9ecEr44zfIbe+p8BwaACeOkjx 2tMTWopq1CZNZQbCUvttOPA= =fmKc -END PGP SIGNATURE- --- debmirror-20070123.orig/debmirror 2007-01-24 04:42:14.0 -0600 +++ debmirror-20070123/debmirror2007-08-01 12:57:32.0 -0500 @@ -1247,7 +1247,9 @@ $| = 1; my $file=shift; my $percent = 0; - my $url=http://${host}/${remoteroot}/${file};; + my $url=${host}/${remoteroot}/${file}; + $url =~ s|[/]{2,}|/|g; + $url = http://; . $url; my $ret=1; $percent = sprintf(%3.0f,(($bytes_gotten/$bytes_to_get)*100)) unless($bytes_to_get == 0);