From 82763c0444df88e6edb2ecb3f4c5a1cafc1b0a34 Mon Sep 17 00:00:00 2001 From: Roman Kagan Date: Mon, 5 Oct 2015 15:40:05 +0300 Subject: [PATCH] v2v:utils: ignore files w/o extension When searching for virtio drivers, it makes no sense to fail if we encounter a file without extension. Ignore such files instead, just like we do for the files whose extension doesn't match that of a driver-related file. Signed-off-by: Roman Kagan --- v2v/utils.ml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/v2v/utils.ml b/v2v/utils.ml index e07f7a977..23d9e51f5 100644 --- a/v2v/utils.ml +++ b/v2v/utils.ml @@ -238,9 +238,8 @@ let find_virtio_win_drivers virtio_win = let extension = match last_part_of lc_basename '.' with | Some x -> x - | None -> - error "v2v/find_virtio_win_drivers: missing '.' in %s" - lc_basename in + | None -> raise Not_found + in (* Skip files without specific extensions. *) if extension <> "cat" && extension <> "inf" &&