Bug#847315: apt-cacher: doesn't allow to download upstream signatures (*.asc)

2016-12-07 Thread Mark Hindley
package apt-cacher
tag 847315 pending
thanks

On Wed Dec    7 11:02:04 2016 Ansgar Burchardt  wrote:
> That works for stunnel4, but looks like it only allows *.tar.gz.asc, but
> should also allow for *.tar.bz2.asc and *.tar.xz.asc.

Sorry, I didn't read down to the Format 3.0 section of dpkg-source(1). I will 
adjust package_files_regexp accordingly and also include .lzma for complete 
support.

Thanks 

Mark



Bug#847315: apt-cacher: doesn't allow to download upstream signatures (*.asc)

2016-12-07 Thread Ansgar Burchardt
Mark Hindley writes:
> On Wed, Dec 07, 2016 at 10:06:52AM +0100, Ansgar Burchardt wrote:
>> apt-cacher doesn't allow to download upstream signatures which are
>> part of the source package.  For example, stunnel4 3:5.38-1 from unstable:
>
> Thanks for this.
>
> Could you add this configuration fragment to a file in /etc/apt-cacher/conf.d
> (all on one line, I can't seem to prevent my mailer from wrapping it)
>
> package_files_regexp =
> (?:(?:^|/)[a-z0-9][-+.a-z0-9]*_(?:\d+:)?[0-9][-+:.~a-zA-Z0-9]*(?:_(?:avr32|amd64|alpha|arm|arm64|armel|armhf|hppa|hurd-i386|i386|ia64|kfreebsd-amd64|kfreebsd-i386|m32r|m68k|mips|mipsel|netbsd-alpha|netbsd-i386|powerpc|powerpcspe|ppc64|s390|s390x|sh4|
> sparc|sparc64|x32|all)\.(?:u|d)?deb|\.dsc|\.tar(?:\.gz(?:\.asc)?|\.bz2|\.xz)|\.diff\.gz)|\.rpm|index\.db-.+\.gz|\.jigdo|
> \.template)$

That works for stunnel4, but looks like it only allows *.tar.gz.asc, but
should also allow for *.tar.bz2.asc and *.tar.xz.asc.

Ansgar



Bug#847315: apt-cacher: doesn't allow to download upstream signatures (*.asc)

2016-12-07 Thread Mark Hindley
On Wed, Dec 07, 2016 at 10:06:52AM +0100, Ansgar Burchardt wrote:
> Package: apt-cacher
> Version: 1.7.13
> Severity: normal
> 
> apt-cacher doesn't allow to download upstream signatures which are
> part of the source package.  For example, stunnel4 3:5.38-1 from unstable:

Thanks for this.

Could you add this configuration fragment to a file in /etc/apt-cacher/conf.d
(all on one line, I can't seem to prevent my mailer from wrapping it)

package_files_regexp = 
(?:(?:^|/)[a-z0-9][-+.a-z0-9]*_(?:\d+:)?[0-9][-+:.~a-zA-Z0-9]*(?:_(?:avr32|amd64|alpha|arm|arm64|armel|armhf|hppa|hurd-i386|i386|ia64|kfreebsd-amd64|kfreebsd-i386|m32r|m68k|mips|mipsel|netbsd-alpha|netbsd-i386|powerpc|powerpcspe|ppc64|s390|s390x|sh4|
 
sparc|sparc64|x32|all)\.(?:u|d)?deb|\.dsc|\.tar(?:\.gz(?:\.asc)?|\.bz2|\.xz)|\.diff\.gz)|\.rpm|index\.db-.+\.gz|\.jigdo|
 \.template)$

Then restart the daemon.

Best wishes

Mark



Bug#847315: apt-cacher: doesn't allow to download upstream signatures (*.asc)

2016-12-07 Thread Ansgar Burchardt
Package: apt-cacher
Version: 1.7.13
Severity: normal

apt-cacher doesn't allow to download upstream signatures which are
part of the source package.  For example, stunnel4 3:5.38-1 from unstable:

+---
| % apt-get source stunnel4
| [...]
| Skipping already downloaded file 'stunnel4_5.38-1.dsc'
| Skipping already downloaded file 'stunnel4_5.38.orig.tar.gz'
| Skipping already downloaded file 'stunnel4_5.38-1.debian.tar.xz'
| Need to get 811 B of source archives.
| Err:1 http://ftp.de.debian.org/debian stretch/main stunnel4 3:5.38-1 (asc)
|   403  Sorry, not allowed to fetch that type of file: 
stunnel4_5.38.orig.tar.gz.asc
| E: Failed to fetch 
http://ftp.de.debian.org/debian/pool/main/s/stunnel4/stunnel4_5.38.orig.tar.gz.asc
  403  Sorry, not allowed to fetch that type of file: 
stunnel4_5.38.orig.tar.gz.asc
| E: Failed to fetch some archives.
+---

Please allow retrieval of ${orig_tarball}.asc in addition to just
${orig_tarball}.

Ansgar

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (100, 'buildd-unstable'), 
(100, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.8.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages apt-cacher depends on:
ii  debconf [debconf-2.0]  1.5.59
ii  ed 1.10-2.1
ii  libdpkg-perl   1.18.15
ii  libfilesys-df-perl 0.92-6+b1
ii  libio-interface-perl   1.09-1+b2
ii  libipc-shareable-perl  0.61-1
ii  libnetaddr-ip-perl 4.079+dfsg-1+b1
ii  libsys-syscall-perl0.25-6
ii  libwww-curl-perl   4.17-3
ii  libwww-perl6.15-1
ii  lsb-base   9.20161125
ii  perl   5.24.1~rc4-1
ii  ucf3.0036
ii  update-inetd   4.43

Versions of packages apt-cacher recommends:
pn  libberkeleydb-perl
pn  libio-compress-lzma-perl  

Versions of packages apt-cacher suggests:
ii  libfreezethaw-perl   0.5001-1
ii  libio-socket-inet6-perl  2.72-2

-- debconf information excluded