Remove ambiguous imports

Make all imports either use full package name starting with `pungi` or
use explicitly relative import. This will avoid issues when importing a
module that shadows another module on PYTHONPATH.

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2016-07-20 13:36:42 +02:00
parent f0dca7687e
commit d51550da84
3 changed files with 19 additions and 19 deletions

View File

@ -18,8 +18,8 @@
import re
import fnmatch
import pathmatch
import pungi.pathmatch
import pungi.gather
@ -72,7 +72,7 @@ def read_runtime_patterns_from_file(path):
def expand_runtime_patterns(patterns):
pm = pathmatch.PathMatch()
pm = pungi.pathmatch.PathMatch()
result = []
for path, pattern in patterns:
for root in ("", "/opt/*/*/root"):

View File

@ -16,19 +16,19 @@
# phases in runtime order
from init import InitPhase # noqa
from pkgset import PkgsetPhase # noqa
from gather import GatherPhase # noqa
from createrepo import CreaterepoPhase # noqa
from product_img import ProductimgPhase # noqa
from buildinstall import BuildinstallPhase # noqa
from extra_files import ExtraFilesPhase # noqa
from createiso import CreateisoPhase # noqa
from live_images import LiveImagesPhase # noqa
from image_build import ImageBuildPhase # noqa
from test import TestPhase # noqa
from image_checksum import ImageChecksumPhase # noqa
from livemedia_phase import LiveMediaPhase # noqa
from ostree import OSTreePhase # noqa
from ostree_installer import OstreeInstallerPhase # noqa
from osbs import OSBSPhase # noqa
from .init import InitPhase # noqa
from .pkgset import PkgsetPhase # noqa
from .gather import GatherPhase # noqa
from .createrepo import CreaterepoPhase # noqa
from .product_img import ProductimgPhase # noqa
from .buildinstall import BuildinstallPhase # noqa
from .extra_files import ExtraFilesPhase # noqa
from .createiso import CreateisoPhase # noqa
from .live_images import LiveImagesPhase # noqa
from .image_build import ImageBuildPhase # noqa
from .test import TestPhase # noqa
from .image_checksum import ImageChecksumPhase # noqa
from .livemedia_phase import LiveMediaPhase # noqa
from .ostree import OSTreePhase # noqa
from .ostree_installer import OstreeInstallerPhase # noqa
from .osbs import OSBSPhase # noqa

View File

@ -24,7 +24,7 @@ from kobo.rpmlib import parse_nvra
from productmd.rpms import Rpms
from pungi.wrappers.scm import get_file_from_scm
from link import link_files
from .link import link_files
from pungi.util import get_arch_variant_data, get_arch_data
from pungi.phases.base import PhaseBase