Exemplo n.º 1
0
def build_src2(name, src_name, src_dir, env=None):
    """Build a package.

    Steps:

    - init builder if it not exists yet
    - copy current package into builder share
    - do we have a orig file ?
    - build the package
    - publish results
    """
    src_base = os.path.join(src_name, os.path.basename(src_dir))

    orig1 = os.path.join(src_dir, '../%s_*.orig.tar.gz' % src_name)
    orig2 = os.path.join(src_dir, '../%s_*.orig.tar.xz' % src_name)

    print('build', src_name)
    print('build', orig1)
    print('build', orig2)
    return

    bot = Bot.initialize(name)
    bot.cleanup(src_name)
    bot.share(os.path.join(src_dir, '.'),
              os.path.join(src_base, '.'))
    bot.share(os.path.join(src_dir, orig1),
              os.path.join(src_base, '..'))
    bot.share(os.path.join(src_dir, orig2),
              os.path.join(src_base, '..'))
    bot.build(src_base, env)
    bot.publish()
Exemplo n.º 2
0
def build_src(name, src_name, src_dir, env=None):
    """Build a package.

    Steps:

    - init builder if it not exists yet
    - copy current package into builder share
    - do we have a orig file ?
    - build the package
    - publish results
    """

    bot = Bot.initialize(name)
    # bot.cleanup(src_name)
    bot.build(src_name, src_dir, env)
Exemplo n.º 3
0
def build_publish(name):
    """Publish builts.
    """

    bot = Bot.initialize(name)
    bot.publish()
Exemplo n.º 4
0
def fetch_src(name, pkg_name, parent_dir):
    """Download package source from bot.
    """

    bot = Bot.initialize(name)
    bot.fetch_src(pkg_name, parent_dir)
Exemplo n.º 5
0
def bot_init(name, force=False):
    return Bot.initialize(name)