diff options
Diffstat (limited to 'src/import/import.c')
-rw-r--r-- | src/import/import.c | 6 |
1 files changed, 5 insertions, 1 deletions
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); |