Index: debian/changelog ================================================================== --- debian/changelog +++ debian/changelog @@ -1,5 +1,11 @@ +vws (0.6-2) unstable; urgency=medium + + * Fixed bridge-checking code introduced in 0.6 + + -- Victor Wagner Fri, 07 Dec 2018 16:13:55 +0300 + vws (0.6-1) unstable; urgency=medium * Added RemainAfterExit into systemd unit * Check if machine uses incorrect bridge names * Read away (qemu) prompt from monitor socket before issuing command Index: debian/files ================================================================== --- debian/files +++ debian/files @@ -1,2 +1,2 @@ -vws_0.6-1_all.deb otherosfs optional -vws_0.6-1_amd64.buildinfo otherosfs optional +vws_0.6-2_all.deb otherosfs optional +vws_0.6-2_amd64.buildinfo otherosfs optional Index: vws ================================================================== --- vws +++ vws @@ -1,6 +1,7 @@ #!/usr/bin/python +# -*- encoding: utf-8 -*- """ vws - script to control QEMU/KVM virtual workstations """ # pylint: disable=bad-builtin from ConfigParser import ConfigParser from argparse import ArgumentParser, Namespace import fcntl @@ -77,11 +78,13 @@ if idx != -1: url = line[idx+9:] if url.startswith('*:'): url = socket.getfqdn()+url[1:] if url is None: - print >>sys.stderr, "ERROR parsing 'info spice' output:",output + if output.endswith('(qemu)'): + return spiceurl(sock) + print >>sys.stderr, "ERROR parsing 'info spice' output:«",output,"»" return None return "spice://" + url.rstrip('\r')