コード例 #1
0
ファイル: packager.py プロジェクト: wangfan008/cerbero
    def __new__(klass, config, package, store):
        d = config.target_distro
        v = config.target_distro_version

        if d not in _packagers:
            raise FatalError(_("No packager available for the distro %s" % d))

        if v not in _packagers[d]:
            # Be tolerant with the distro version
            m.warning(
                _("No specific packager available for the distro "
                  "version %s, using generic packager for distro %s" % (v, d)))
            v = None

        if d == Distro.DEBIAN:
            m.warning(
                'Creation of Debian packages is currently broken, please see '
                'https://gitlab.freedesktop.org/gstreamer/cerbero/issues/56\n'
                'Creating tarballs instead...')
            d = Distro.NONE
            v = None

        if d == Distro.WINDOWS and config.cross_compiling():
            try:
                get_wix_prefix()
            except:
                m.warning(
                    "Cross-compiling for Windows and WIX not found, overriding Packager"
                )
                d = Distro.NONE

        return _packagers[d][v](config, package, store)
コード例 #2
0
ファイル: wix_packager.py プロジェクト: fluendo/cerbero
 def __init__(self, config, package, store):
     PackagerBase.__init__(self, config, package, store)
     self._with_wine = config.platform != Platform.WINDOWS
     self.wix_prefix = get_wix_prefix()
     # Init wix wine prefix in the case of using it.
     self.wix_wine_prefix = None
     self.tmpdir = None
コード例 #3
0
 def __init__(self, config, package, store):
     PackagerBase.__init__(self, config, package, store)
     self._with_wine = config.platform != Platform.WINDOWS
     self.wix_prefix = get_wix_prefix()
     # We use this trick to workaround the wix path limitation.
     # wix_wine_prefix is a symbolic link to the regular cerbero prefix
     # and should not be a folder.
     if self._with_wine:
         self.wix_wine_prefix = self.get_wix_wine_prefix()
         os.symlink(config.prefix, self.wix_wine_prefix)
     else:
         self.wix_wine_prefix = None
コード例 #4
0
ファイル: wix_packager.py プロジェクト: fluendo/cerbero
 def __init__(self, config, package, store):
     PackagerBase.__init__(self, config, package, store)
     self._with_wine = config.platform != Platform.WINDOWS
     self.wix_prefix = get_wix_prefix()
     # We use this trick to workaround the wix path limitation.
     # wix_wine_prefix is a symbolic link to the regular cerbero prefix
     # and should not be a folder.
     if self._with_wine:
       self.wix_wine_prefix = self.get_wix_wine_prefix()
       os.symlink(config.prefix, self.wix_wine_prefix)
     else:
       self.wix_wine_prefix = None
     self.packager_tmpdirs = []
コード例 #5
0
ファイル: packager.py プロジェクト: hwangsaeul/cerbero
    def __new__(klass, config, package, store):
        d = config.target_distro
        v = config.target_distro_version

        if d not in _packagers:
            raise FatalError(_("No packager available for the distro %s" % d))

        if v not in _packagers[d]:
            # Be tolerant with the distro version
            m.warning(
                _("No specific packager available for the distro "
                  "version %s, using generic packager for distro %s" % (v, d)))
            v = None

        if d == Distro.WINDOWS and config.cross_compiling():
            try:
                get_wix_prefix()
            except:
                m.warning(
                    "Cross-compiling for Windows and WIX not found, overriding Packager"
                )
                d = Distro.NONE

        return _packagers[d][v](config, package, store)
コード例 #6
0
ファイル: wix_packager.py プロジェクト: itsdrpatel/cerbero
 def __init__(self, config, package, store):
     PackagerBase.__init__(self, config, package, store)
     self._with_wine = config.platform != Platform.WINDOWS
     self.wix_prefix = get_wix_prefix()
コード例 #7
0
 def __init__(self, config, package, store):
     PackagerBase.__init__(self, config, package, store)
     self._with_wine = config.platform != Platform.WINDOWS
     self.wix_prefix = get_wix_prefix()
コード例 #8
0
 def __init__(self, config, package, store):
     PackagerBase.__init__(self, config, package, store)
     self._with_wine = config.platform != Platform.WINDOWS
     self.wix_prefix = get_wix_prefix()
     # Init wix wine prefix in the case of using it.
     self.wix_wine_prefix = None