33-aptsetup: improve perl regex to work with backports and perl 5.14
authorMichael Prokop <mika@grml.org>
Mon, 22 Jun 2015 11:52:46 +0000 (13:52 +0200)
committerMichael Prokop <mika@grml.org>
Mon, 22 Jun 2015 11:59:52 +0000 (13:59 +0200)
commit7cf0d67457c7a730a4cbdec28f7f9bdcd180a361
tree10e32fac55d9f451c82e252ea6d66ceb29da0b5e
parentfac5a9f0e819ff59070fb0ac2e27a5b9a9e1877b
33-aptsetup: improve perl regex to work with backports and perl 5.14

The perl command line which is responsible for replacing
ftp.debian.org with the according snapshot.debian.org entry
produced an invalid sources.list entry with perl v5.14.2,
e.g. generating:

|  deb     http://snapshot.debian.org/archive/debian/20150622/ main   deb-src http://snapshot.debian.org/archive/debian/20150622/ main

with the following input:

|  deb     http://ftp.debian.org/debian/ jessie-backports main
|  deb-src http://ftp.debian.org/debian/ jessie-backports main
etc/grml/fai/config/scripts/GRMLBASE/33-aptsetup