Package: apt-mirror
Version: 0.4.8-5
Severity: important
Tags: patch

Hi,


mirroring armhf architecture doesn't work:

$ apt-mirror mirror.list
Downloading 13 index files using 13 threads...
Begin time: Fri Dec 27 22:16:42 2013
[13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... 
[3]... [2]... [1]... [0]...
End time: Fri Dec 27 22:16:42 2013

Proceed indexes: [Psh: 1: cannot open 
ftp.de.debian.org/debian//dists/wheezy/main/binary-arm/Packages.gz: No such file
$ 

Some  debugging  printf()s  show  that the deb-* parser doesn't work properly,
'armhf' gets matched as 'arm'. Dirty, but working patch:

--- apt-mirror  2013-12-27 22:18:27.312722266 +0100
+++ /usr/bin/apt-mirror 2013-12-27 22:18:52.016721234 +0100
@@ -256 +256 @@
-    if($config_line =~ 
/deb-(alpha|amd64|armel|arm|armhf|hppa|hurd-i386|i386|ia64|kfreebsd-i386|kfreebsd-amd64|lpia|m68k|mipsel|mips|powerpc|s390|s390x|sh|sparc)/)
 {
+    if($config_line =~ 
/deb-(alpha|amd64|armel|armhf|arm|hppa|hurd-i386|i386|ia64|kfreebsd-i386|kfreebsd-amd64|lpia|m68k|mipsel|mips|powerpc|s390|s390x|sh|sparc)/)
 {

Probably one should tighten the regex with \> or something like this.

Cheers,

        Julius



-- System Information:
Debian Release: 7.3
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to