43e355396ebf074fe187a512160405a3c1e7043d
[portage-overlay.git] / app-emulation / lxc / files / lxc-1.0.7-kf-gentoo-template.patch
1 From 950e94b0ad06eaca2227956559334c511e3064f2 Mon Sep 17 00:00:00 2001
2 From: Kristian Fiskerstrand <kristian.fiskerstrand@sumptuouscapital.com>
3 Date: Wed, 24 Feb 2016 10:15:47 +0100
4 Subject: [PATCH] templates/lxc-gentoo.in: Fix download issue due to updated
5  pointer
6
7 templates/lxc-gentoo.in downloads a pointer to the latest
8 stage3 release, e.g
9 http://distfiles.gentoo.org/releases/amd64/autobuilds/latest-stage3-amd64.txt
10 that contains two fields, the path to the file itself and a timestamp.
11
12 The timestamp is attempted to be included in the further downloading
13 automatically, resulting in 404 error. By splitting this properly
14 download works again
15 ---
16  templates/lxc-gentoo.in | 2 +-
17  1 file changed, 1 insertion(+), 1 deletion(-)
18
19 diff --git a/templates/lxc-gentoo.in b/templates/lxc-gentoo.in
20 index d0df899..282522c 100644
21 --- a/templates/lxc-gentoo.in
22 +++ b/templates/lxc-gentoo.in
23 @@ -160,7 +160,7 @@ cache_stage3()
24          printf "Determining path to latest Gentoo %s (%s) stage3 archive...\n" "${arch}" "${variant}"
25          printf " => downloading and processing %s\n" "${stage3_pointer}"
26  
27 -        local stage3_latest_tarball=$(wget -q -O - "${stage3_pointer}" | tail -n1 ) \
28 +        local stage3_latest_tarball=$(wget -q -O - "${stage3_pointer}" | tail -n1 | cut -d " " -f1) \
29              || die 6 "Error: unable to fetch\n"
30  
31          printf " => Got: %s\n" "${stage3_latest_tarball}"
32 -- 
33 2.4.10
34