Commits

Albert Hopkins committed 966d0fd

"qemu-nbd -c" now needs the full path of the image file

  • Participants
  • Parent commits b32349b
  • Tags 0.5.1

Comments (0)

Files changed (2)

File hemp/helpers.py

         # see if we're being used
         status = sudo_popen(['fuser', '-a', devnode], stderr=NULL).wait()
         if status != 0:
-            args = ['qemu-nbd', '--connect=%s' % devnode, filename]
-            sudo_popen(args, stderr=NULL, stdout=NULL, stdin=NULL,
-                    cwd=dirname).wait()
+            args = ['qemu-nbd', '--connect=%s' % devnode, os.path.join(dirname,filename)]
+            sudo_popen(args, stderr=NULL, stdout=NULL, stdin=NULL).wait()
             sleep(1) # it never works instantly :(
             yield devnode
             break

File hemp/hemp.py

 from helpers import get_device, sudo_popen, mount_qcow, unmount_qcow
 import settings
 
-__version__ = '0.5.0'
+__version__ = '0.5.1'
 __revision__ = '$Revision$'
 
 DIRS = ('.hemp', '.hemp/images',)