]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
gentoo container building fails during wget.
authorlxc@zitta.fr <lxc@zitta.fr>
Fri, 20 Feb 2015 21:53:40 +0000 (22:53 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 16 Mar 2015 17:37:04 +0000 (13:37 -0400)
follow new gentoo's download server configuration.
Should be backported in earlier lxc versions.

Signed-off-by: Guillaume ZITTA <lxc@zitta.fr>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
templates/lxc-gentoo.in

index 92edcd4c42e61d93b708f81311b47a4ac01d1d5e..bcaca4eb790a577b3a94387136523358882fe808 100644 (file)
@@ -160,7 +160,7 @@ cache_stage3()
         printf "Determining path to latest Gentoo %s (%s) stage3 archive...\n" "${arch}" "${variant}"
         printf " => downloading and processing %s\n" "${stage3_pointer}"
 
-        local stage3_latest_tarball=$(wget -q -O - "${stage3_pointer}" | tail -n1 ) \
+        local stage3_latest_tarball=$(wget -q -O - "${stage3_pointer}" | tail -n1 | cut -d' ' -f1) \
             || die 6 "Error: unable to fetch\n"
 
         printf " => Got: %s\n" "${stage3_latest_tarball}"