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

5ce0c7
From 66cd34e84e41d3f70e95fa745637ba6eb4779aec 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
+    debug "windows: copy_from_virtio_win: guest tools source directory %s"
46b2f6
+      virtio_win;
5ce0c7
+
5ce0c7
     let dir = virtio_win // srcdir in
5ce0c7
-    debug "windows: copy_from_virtio_win: guest tools source directory %s" dir;
5ce0c7
-
46b2f6
-    if not (is_directory srcdir) then missing ()
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
-- 
5ce0c7
2.18.4
46b2f6