From 49bb233bb734536b9617d838f09a7bf9b8336003 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 16 Jan 2015 18:42:17 +0100 Subject: import: support downloading .xz compressed images That way we can download fedora cloud raw images as-is and decompress them on-the-fly. --- src/import/import.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/import/import.c') diff --git a/src/import/import.c b/src/import/import.c index b4d859df1f..e457adf629 100644 --- a/src/import/import.c +++ b/src/import/import.c @@ -79,7 +79,11 @@ static int pull_raw(int argc, char *argv[], void *userdata) { if (local) { const char *p; - suffix = endswith(local, ".raw"); + suffix = endswith(local, ".raw.xz"); + if (!suffix) + suffix = endswith(local, ".raw"); + if (!suffix) + suffix = endswith(local, ".xz"); if (suffix) local = strndupa(local, suffix - local); -- cgit v1.2.3-54-g00ecf