Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

GRMLBASE/33-aptsetup: adjust snapshot.debian.org cmdline and enable i…

…t for RELEASE class

Closes: issue1083
  • Loading branch information...
commit dfb358d88e061165bcebb281502934ad2e609f56 1 parent 4c8f1b5
@mika mika authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 etc/grml/fai/config/scripts/GRMLBASE/33-aptsetup
View
7 etc/grml/fai/config/scripts/GRMLBASE/33-aptsetup
@@ -8,11 +8,12 @@
set -e
-if ifclass SNAPSHOT ; then
+# 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.* )(.*://cdn.*?)(
- .*)$#$1$2http://snapshot.debian.org/archive/debian/$d/$4#' \
+ perl -pi -e 'BEGIN { $d="'$(date +%Y%m%d)'"; } s#^(\s+)(deb.* )(.*://cdn.*?)\s+(\w+)\s+(.*)$#$1$2http://snapshot.debian.org/archive/debian/$d/ $4 $5#' \
"${target}/etc/apt/sources.list.d/debian.list"
+
fi
## END OF FILE #################################################################
Please sign in to comment.
Something went wrong with that request. Please try again.