engine: With --test-first-run, don't try default URI detection

default URI detection gets testing via the 'connect' dialog, this
makes it easier to test the fallback when no packages are locally
present
This commit is contained in:
Cole Robinson 2017-08-07 17:26:48 -04:00
parent 08a7eaed4d
commit 4cdae27cb2

View File

@ -233,9 +233,10 @@ class vmmEngine(vmmGObject):
except Exception:
logging.exception("Error talking to PackageKit")
tryuri = None
if ret:
tryuri = "qemu:///system"
else:
elif not self.config.test_first_run:
tryuri = vmmConnect.default_uri()
if tryuri is None: