projects
/
grml-live.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4c8f1b5
)
GRMLBASE/33-aptsetup: adjust snapshot.debian.org cmdline and enable it for RELEASE...
author
Michael Prokop
<mika@grml.org>
Wed, 30 May 2012 12:59:04 +0000
(14:59 +0200)
committer
Michael Prokop
<mika@grml.org>
Wed, 30 May 2012 12:59:07 +0000
(14:59 +0200)
Closes: issue1083
etc/grml/fai/config/scripts/GRMLBASE/33-aptsetup
patch
|
blob
|
history
diff --git
a/etc/grml/fai/config/scripts/GRMLBASE/33-aptsetup
b/etc/grml/fai/config/scripts/GRMLBASE/33-aptsetup
index
c38a28e
..
39af509
100755
(executable)
--- a/
etc/grml/fai/config/scripts/GRMLBASE/33-aptsetup
+++ b/
etc/grml/fai/config/scripts/GRMLBASE/33-aptsetup
@@
-8,11
+8,12
@@
set -e
set -e
-if ifclass SNAPSHOT ; then
+# use snapshot.debian.org based on build date for release
+if ifclass RELEASE ; then
set -u
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"
"${target}/etc/apt/sources.list.d/debian.list"
+
fi
## END OF FILE #################################################################
fi
## END OF FILE #################################################################