Blame SOURCES/0051-v2v-fix-path-to-source-when-copying-files-from-guest.patch

46b2f6
From 1d0a22aa3f950330b0cf9c5e874642b5a02edf17 Mon Sep 17 00:00:00 2001
46b2f6
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Golembiovsk=C3=BD?= <tgolembi@redhat.com>
46b2f6
Date: Fri, 8 Feb 2019 11:44:41 +0100
46b2f6
Subject: [PATCH] v2v: fix path to source when copying files from guest tools
46b2f6
 directory
46b2f6
MIME-Version: 1.0
46b2f6
Content-Type: text/plain; charset=UTF-8
46b2f6
Content-Transfer-Encoding: 8bit
46b2f6
46b2f6
The debug message was slightly changed too to better match the similar
46b2f6
message for ISO case. It refers to the root directory instead of the
46b2f6
specific subdirectory inside guest tools.
46b2f6
46b2f6
Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com>
46b2f6
(cherry picked from commit f4bda5571a36da42bdc800c10f2c85cf20bf5c85)
46b2f6
---
46b2f6
 v2v/windows_virtio.ml | 7 ++++---
46b2f6
 1 file changed, 4 insertions(+), 3 deletions(-)
46b2f6
46b2f6
diff --git a/v2v/windows_virtio.ml b/v2v/windows_virtio.ml
46b2f6
index 7be63a316..70f0bf09d 100644
46b2f6
--- a/v2v/windows_virtio.ml
46b2f6
+++ b/v2v/windows_virtio.ml
46b2f6
@@ -309,10 +309,11 @@ and copy_drivers g inspect driverdir =
46b2f6
 and copy_from_virtio_win g inspect srcdir destdir filter missing =
46b2f6
   let ret = ref [] in
46b2f6
   if is_directory virtio_win then (
46b2f6
-    let dir = virtio_win // srcdir in
46b2f6
-    debug "windows: copy_from_virtio_win: guest tools source directory %s" dir;
46b2f6
+    debug "windows: copy_from_virtio_win: guest tools source directory %s"
46b2f6
+      virtio_win;
46b2f6
 
46b2f6
-    if not (is_directory srcdir) then missing ()
46b2f6
+    let dir = virtio_win // srcdir in
46b2f6
+    if not (is_directory dir) then missing ()
46b2f6
     else (
46b2f6
       let cmd = sprintf "cd %s && find -L -type f" (quote dir) in
46b2f6
       let paths = external_command cmd in
46b2f6
-- 
b155d0
2.26.2
46b2f6