1 |
commit: c19080d5f4c096f89ce17768e1f231b9f1db54b7 |
2 |
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 8 08:04:40 2017 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 8 08:04:40 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/releng.git/commit/?id=c19080d5 |
7 |
|
8 |
catalyst-auto: tweak timestamp. |
9 |
|
10 |
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org> |
11 |
|
12 |
tools/catalyst-auto-amd64.conf | 3 ++- |
13 |
1 file changed, 2 insertions(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/tools/catalyst-auto-amd64.conf b/tools/catalyst-auto-amd64.conf |
16 |
index 5676f5c1..82bc147c 100644 |
17 |
--- a/tools/catalyst-auto-amd64.conf |
18 |
+++ b/tools/catalyst-auto-amd64.conf |
19 |
@@ -47,7 +47,7 @@ EXTENSIONS="[.tar.xz,.tar.bz2,.tar.gz,.tar,.sfs]" |
20 |
|
21 |
give_latest_from_dates() { |
22 |
sed 's,-20,~20,g' | \ |
23 |
- sort -k +1 -n -t '~' |\ |
24 |
+ sort -k +1 -n -t '~' | \ |
25 |
awk -F\~ \ |
26 |
'BEGIN{i=$1; o=$0}; |
27 |
{ if($1 != i && i != "") { print o; }; i=$1; o=$0; } |
28 |
@@ -67,6 +67,7 @@ update_symlinks() { |
29 |
of=$(perl -p \ |
30 |
-e 's/20\d{6}T\d{6}Z/latest/g;' \ |
31 |
-e 's/20\d{6}\d{6}/latest/g;' \ |
32 |
+ -e 's/20\d{6}/latest/g;' \ |
33 |
-e 's/20\d{2}\.\d{2}/latest/g;' \ |
34 |
<<<"$f") |
35 |
ln -sf "$f" "$of" |