Ignore:
Timestamp:
Jul 6, 2010, 12:27:50 AM (14 years ago)
Author:
gdb
Message:

Added reporting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-dev/python/invirt/builder.py

    r3035 r3036  
    1818_REPO_DIR = '/srv/git'
    1919_LOG_DIR = '/var/log/invirt/builds'
    20 _HOOKS_DIR = '/usr/share/invirt-dev/build.d'
     20_HOOKS_DIR = '/usr/share/invirt-dev/build-hooks'
    2121
    2222
     
    7575    return changelog.Changelog(getGitFile(package, ref, 'debian/changelog'))
    7676
     77def runHook(hook, args=[], stdin_str=None):
     78    """Run a named hook."""
     79    hook = os.path.join(_HOOKS_DIR, hook)
     80    try:
     81        c.captureOutput([hook] + args, stdin_str=stdin_str)
     82    except OSError:
     83        pass
    7784
    7885def getVersion(package, ref):
Note: See TracChangeset for help on using the changeset viewer.