mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
virt-manager: drop libvirt 0.6.0 version check
This is comically old and completely unrealistic anyone would attempt to use that nowadays. Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
@@ -19,7 +19,6 @@ class TestConn(unittest.TestCase):
|
||||
# Misc API checks
|
||||
conn = cli.getConnection("test:///default")
|
||||
conn.invalidate_caps()
|
||||
assert conn.libvirt_new_enough_for_virtmanager(1000) is True
|
||||
assert conn.is_open() is True
|
||||
assert conn.is_container_only() is False
|
||||
assert conn.is_openvz() is False
|
||||
|
||||
@@ -17,7 +17,6 @@ gi.require_version('LibvirtGLib', '1.0')
|
||||
from gi.repository import LibvirtGLib
|
||||
|
||||
from virtinst import BuildConfig
|
||||
from virtinst import VirtinstConnection
|
||||
from virtinst import cli
|
||||
from virtinst import log
|
||||
|
||||
@@ -231,12 +230,6 @@ def main():
|
||||
Gtk.get_minor_version(),
|
||||
Gtk.get_micro_version())
|
||||
|
||||
if not VirtinstConnection.libvirt_new_enough_for_virtmanager(6000):
|
||||
# We need this version for threaded virConnect access
|
||||
_show_startup_error(
|
||||
_("virt-manager requires libvirt 0.6.0 or later."), "")
|
||||
return
|
||||
|
||||
# Prime the vmmConfig cache
|
||||
from . import config
|
||||
config.vmmConfig.get_instance(BuildConfig, CLITestOptions)
|
||||
|
||||
@@ -38,10 +38,6 @@ class VirtinstConnection(object):
|
||||
- lookup for API feature support
|
||||
- simplified API wrappers that handle new and old ways of doing things
|
||||
"""
|
||||
@staticmethod
|
||||
def libvirt_new_enough_for_virtmanager(version):
|
||||
return _real_local_libvirt_version() >= version
|
||||
|
||||
@staticmethod
|
||||
def get_app_cache_dir():
|
||||
ret = os.environ.get("XDG_CACHE_HOME")
|
||||
|
||||
Reference in New Issue
Block a user