File 538a3609-virtconv-fix-use-of-relative-OVF-file.patch of Package virt-manager

Subject: virt-convert: Fix use of relative OVF file
From: Cole Robinson crobinso@redhat.com Sat May 31 16:05:29 2014 -0400
Date: Sat May 31 16:05:29 2014 -0400:
Git: 876c721d8e3045d35c942d96caac28abff1b8219


diff --git a/virtconv/formats.py b/virtconv/formats.py
index 0663190..2af6b6b 100644
--- a/virtconv/formats.py
+++ b/virtconv/formats.py
@@ -195,7 +195,7 @@ class VirtConverter(object):
         (self._input_file,
          self.parser,
          self._force_clean) = _find_input(input_file, parser, self.print_cb)
-        self._top_dir = os.path.dirname(self._input_file)
+        self._top_dir = os.path.dirname(os.path.abspath(self._input_file))
 
         logging.debug("converter not input_file=%s parser=%s",
             self._input_file, self.parser)
openSUSE Build Service is sponsored by