mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-22 13:34:07 +03:00
virtinst: Move multiple installer .py files to virtinst/install/
This commit is contained in:
parent
1d256bccd0
commit
e9439a8ef1
@ -18,7 +18,7 @@ except ImportError:
|
|||||||
argcomplete = None
|
argcomplete = None
|
||||||
|
|
||||||
from virtinst import log
|
from virtinst import log
|
||||||
from virtinst import unattended
|
from virtinst.install import unattended
|
||||||
|
|
||||||
from tests import virtinstall, virtclone, virtconvert, virtxml
|
from tests import virtinstall, virtclone, virtconvert, virtxml
|
||||||
from tests import utils
|
from tests import utils
|
||||||
|
@ -8,7 +8,7 @@ import unittest
|
|||||||
|
|
||||||
from virtinst import Guest
|
from virtinst import Guest
|
||||||
from virtinst import OSDB
|
from virtinst import OSDB
|
||||||
from virtinst import urldetect
|
from virtinst.install import urldetect
|
||||||
|
|
||||||
from tests import utils
|
from tests import utils
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ from virtinst.storage import StoragePool, StorageVolume
|
|||||||
|
|
||||||
from virtinst.devices import * # pylint: disable=wildcard-import
|
from virtinst.devices import * # pylint: disable=wildcard-import
|
||||||
|
|
||||||
from virtinst.installer import Installer
|
from virtinst.install.installer import Installer
|
||||||
|
|
||||||
from virtinst.guest import Guest
|
from virtinst.guest import Guest
|
||||||
from virtinst.cloner import Cloner
|
from virtinst.cloner import Cloner
|
||||||
|
@ -27,7 +27,7 @@ from .logger import log
|
|||||||
from .nodedev import NodeDevice
|
from .nodedev import NodeDevice
|
||||||
from .osdict import OSDB
|
from .osdict import OSDB
|
||||||
from .storage import StoragePool, StorageVolume
|
from .storage import StoragePool, StorageVolume
|
||||||
from .unattended import UnattendedData
|
from .install.unattended import UnattendedData
|
||||||
|
|
||||||
|
|
||||||
##########################
|
##########################
|
||||||
|
0
virtinst/install/__init__.py
Normal file
0
virtinst/install/__init__.py
Normal file
@ -7,15 +7,15 @@
|
|||||||
# See the COPYING file in the top-level directory.
|
# See the COPYING file in the top-level directory.
|
||||||
|
|
||||||
import os
|
import os
|
||||||
from .logger import log
|
|
||||||
|
|
||||||
from . import progress
|
|
||||||
from . import unattended
|
from . import unattended
|
||||||
from .devices import DeviceDisk
|
|
||||||
from .domain import DomainOs
|
|
||||||
from .osdict import OSDB
|
|
||||||
from .installertreemedia import InstallerTreeMedia
|
from .installertreemedia import InstallerTreeMedia
|
||||||
from .installerinject import perform_cdrom_injections
|
from .installerinject import perform_cdrom_injections
|
||||||
|
from ..domain import DomainOs
|
||||||
|
from ..devices import DeviceDisk
|
||||||
|
from ..osdict import OSDB
|
||||||
|
from ..logger import log
|
||||||
|
from .. import progress
|
||||||
|
|
||||||
|
|
||||||
def _make_testsuite_path(path):
|
def _make_testsuite_path(path):
|
@ -9,7 +9,7 @@ import shutil
|
|||||||
import subprocess
|
import subprocess
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
from .logger import log
|
from ..logger import log
|
||||||
|
|
||||||
|
|
||||||
def _run_initrd_commands(initrd, tempdir):
|
def _run_initrd_commands(initrd, tempdir):
|
@ -6,14 +6,14 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from . import progress
|
|
||||||
from . import urldetect
|
from . import urldetect
|
||||||
from . import urlfetcher
|
from . import urlfetcher
|
||||||
from .devices import DeviceDisk
|
|
||||||
from .installerinject import perform_initrd_injections
|
from .installerinject import perform_initrd_injections
|
||||||
from .kernelupload import upload_kernel_initrd
|
from .kernelupload import upload_kernel_initrd
|
||||||
from .logger import log
|
from .. import progress
|
||||||
from .osdict import OSDB
|
from ..devices import DeviceDisk
|
||||||
|
from ..logger import log
|
||||||
|
from ..osdict import OSDB
|
||||||
|
|
||||||
|
|
||||||
# Enum of the various install media types we can have
|
# Enum of the various install media types we can have
|
@ -6,10 +6,10 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from . import progress
|
from .. import progress
|
||||||
from .logger import log
|
from ..devices import DeviceDisk
|
||||||
from .devices import DeviceDisk
|
from ..logger import log
|
||||||
from .storage import StoragePool, StorageVolume
|
from ..storage import StoragePool, StorageVolume
|
||||||
|
|
||||||
|
|
||||||
def _build_pool(conn, meter, path):
|
def _build_pool(conn, meter, path):
|
@ -14,7 +14,7 @@ import tempfile
|
|||||||
|
|
||||||
from gi.repository import Libosinfo
|
from gi.repository import Libosinfo
|
||||||
|
|
||||||
from .logger import log
|
from ..logger import log
|
||||||
|
|
||||||
|
|
||||||
def _make_installconfig(script, osobj, unattended_data, arch, hostname, url):
|
def _make_installconfig(script, osobj, unattended_data, arch, hostname, url):
|
||||||
@ -120,7 +120,7 @@ class OSInstallScript:
|
|||||||
"""
|
"""
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def have_new_libosinfo():
|
def have_new_libosinfo():
|
||||||
from .osdict import OSDB
|
from ..osdict import OSDB
|
||||||
|
|
||||||
win7 = OSDB.lookup_os("win7")
|
win7 = OSDB.lookup_os("win7")
|
||||||
for script in win7.get_install_script_list():
|
for script in win7.get_install_script_list():
|
@ -7,8 +7,8 @@
|
|||||||
import configparser
|
import configparser
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from .logger import log
|
from ..logger import log
|
||||||
from .osdict import OSDB
|
from ..osdict import OSDB
|
||||||
|
|
||||||
|
|
||||||
###############################################
|
###############################################
|
||||||
@ -187,8 +187,7 @@ class _SUSEContent(object):
|
|||||||
if line.startswith(prefix + " "):
|
if line.startswith(prefix + " "):
|
||||||
self.content_dict[prefix] = line.split(" ", 1)[1]
|
self.content_dict[prefix] = line.split(" ", 1)[1]
|
||||||
|
|
||||||
log.debug("SUSE content dict: %s", str(self.content_dict))
|
log.debug("SUSE content dict: %s", self.content_dict)
|
||||||
|
|
||||||
self.tree_arch = self._get_tree_arch()
|
self.tree_arch = self._get_tree_arch()
|
||||||
self.product_name = self._get_product_name()
|
self.product_name = self._get_product_name()
|
||||||
self.product_version = self._get_product_version()
|
self.product_version = self._get_product_version()
|
@ -15,7 +15,7 @@ import urllib
|
|||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
from .logger import log
|
from ..logger import log
|
||||||
|
|
||||||
|
|
||||||
##############################
|
##############################
|
||||||
@ -30,7 +30,7 @@ def _make_mock_url(url, filesyntax):
|
|||||||
if url.endswith("treeinfo"):
|
if url.endswith("treeinfo"):
|
||||||
# If the url is requesting treeinfo, give a fake treeinfo from
|
# If the url is requesting treeinfo, give a fake treeinfo from
|
||||||
# our testsuite data
|
# our testsuite data
|
||||||
fn = ("%s/../tests/cli-test-xml/fakerhel6tree/.treeinfo" %
|
fn = ("%s/../../tests/cli-test-xml/fakerhel6tree/.treeinfo" %
|
||||||
os.path.abspath(os.path.dirname(__file__)))
|
os.path.abspath(os.path.dirname(__file__)))
|
||||||
abspath = os.path.abspath(fn)
|
abspath = os.path.abspath(fn)
|
||||||
else:
|
else:
|
Loading…
Reference in New Issue
Block a user