mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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 <rkagan@virtuozzo.com>
This commit is contained in:
committed by
Richard W.M. Jones
parent
1f47ba92f2
commit
82763c0444
@@ -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" &&
|
||||
|
||||
Reference in New Issue
Block a user