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)
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
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
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 = []
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)
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()
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()
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