summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
fac5a9f)
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
# use snapshot.debian.org based on build date for release
if ifclass RELEASE ; then
set -u
# use snapshot.debian.org based on build date for release
if ifclass RELEASE ; then
set -u
- perl -pi -e 'BEGIN { $d="'$(date +%Y%m%d)'"; } s#^(\s+)(deb.* )(.*://ftp.debian.org.*?)\s+(\w+)\s+(.*)$#$1$2http://snapshot.debian.org/archive/debian/$d/ $4 $5#' \
+ perl -pi -e 'BEGIN { $d="'$(date +%Y%m%d)'"; } s#^(\s+)(deb.* )(.*://ftp.debian.org.*?)\s+([a-z-]+)\s+(.*)$#$1$2http://snapshot.debian.org/archive/debian/$d/ $4 $5#' \
"${target}/etc/apt/sources.list.d/debian.list"
fi
"${target}/etc/apt/sources.list.d/debian.list"
fi