Ejemplo n.º 1
0
    def get_chroot(self, platform=None):
        if not platform:
            platform = list(self.platforms)[0]

        return BuildEnv.getChrootSynoBase(platform,
                                          self.__get_version(platform),
                                          self.suffix)
Ejemplo n.º 2
0
def link_platform(project, platform, version=None):
    source = get_project_source(project)
    chroot = BuildEnv.getChrootSynoBase(platform, version)
    dest = os.path.join(chroot, "source", project)

    if os.path.isdir(dest):
        shutil.rmtree(dest)

    link(source, dest)
Ejemplo n.º 3
0
    def get_chroot(self, platform=None):
        if not platform:
            platform = list(self.platforms)[0]

        return BuildEnv.getChrootSynoBase(platform, self.__get_version(platform), self.suffix)