Esempio 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()
Esempio 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)
Esempio n. 3
0
def build_publish(name):
    """Publish builts.
    """

    bot = Bot.initialize(name)
    bot.publish()
Esempio 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)
Esempio n. 5
0
def bot_init(name, force=False):
    return Bot.initialize(name)