summaryrefslogtreecommitdiffstats
path: root/recipes-containers/lxc/files/0001-download-don-t-try-compatbility-index.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-containers/lxc/files/0001-download-don-t-try-compatbility-index.patch')
-rw-r--r--recipes-containers/lxc/files/0001-download-don-t-try-compatbility-index.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/recipes-containers/lxc/files/0001-download-don-t-try-compatbility-index.patch b/recipes-containers/lxc/files/0001-download-don-t-try-compatbility-index.patch
new file mode 100644
index 00000000..fee3b61a
--- /dev/null
+++ b/recipes-containers/lxc/files/0001-download-don-t-try-compatbility-index.patch
@@ -0,0 +1,43 @@
1From d69c856f90c752637b33e59fbbcfa31f619e2285 Mon Sep 17 00:00:00 2001
2From: Bruce Ashfield <bruce.ashfield@gmail.com>
3Date: Sun, 14 Aug 2022 22:44:24 -0400
4Subject: [PATCH] download: don't try compatbility index
5
6This is being mistaken for a valid, non compat index .. and we never
7try for the one that exists (the index without a compatibility
8extension). So we just drop the compat try for now.
9
10Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
11---
12 templates/lxc-download.in | 8 ++------
13 1 file changed, 2 insertions(+), 6 deletions(-)
14
15diff --git a/templates/lxc-download.in b/templates/lxc-download.in
16index 9a3290fbc..216e4dda7 100755
17--- a/templates/lxc-download.in
18+++ b/templates/lxc-download.in
19@@ -234,9 +234,7 @@ if [ "${DOWNLOAD_LIST_IMAGES}" = "true" ] || [ "${DOWNLOAD_INTERACTIVE}" = "true
20 DOWNLOAD_INDEX_PATH="/meta/1.0/index-${DOWNLOAD_MODE}"
21
22 echo "Downloading the image index"
23- if ! download_file "${DOWNLOAD_INDEX_PATH}.${DOWNLOAD_COMPAT_LEVEL}" "${DOWNLOAD_TEMP}/index" noexit; then
24- download_file "${DOWNLOAD_INDEX_PATH}" "${DOWNLOAD_TEMP}/index" normal
25- fi
26+ download_file "${DOWNLOAD_INDEX_PATH}" "${DOWNLOAD_TEMP}/index" normal
27
28 # Parse it
29 echo ""
30@@ -316,9 +314,7 @@ if [ "${DOWNLOAD_USE_CACHE}" = "false" ]; then
31 DOWNLOAD_INDEX_PATH="/meta/1.0/index-${DOWNLOAD_MODE}"
32
33 echo "Downloading the image index"
34- if ! download_file "${DOWNLOAD_INDEX_PATH}.${DOWNLOAD_COMPAT_LEVEL}" "${DOWNLOAD_TEMP}/index" noexit; then
35- download_file "${DOWNLOAD_INDEX_PATH}" "${DOWNLOAD_TEMP}/index" normal
36- fi
37+ download_file "${DOWNLOAD_INDEX_PATH}" "${DOWNLOAD_TEMP}/index" normal
38
39 # Parse it
40 while IFS=';' read -r f1 f2 f3 f4 f5 f6; do
41--
422.25.1
43