Changeset 3036 for trunk/packages/invirt-dev/python/invirt
- Timestamp:
- Jul 6, 2010, 12:27:50 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-dev/python/invirt/builder.py
r3035 r3036 18 18 _REPO_DIR = '/srv/git' 19 19 _LOG_DIR = '/var/log/invirt/builds' 20 _HOOKS_DIR = '/usr/share/invirt-dev/build .d'20 _HOOKS_DIR = '/usr/share/invirt-dev/build-hooks' 21 21 22 22 … … 75 75 return changelog.Changelog(getGitFile(package, ref, 'debian/changelog')) 76 76 77 def 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 77 84 78 85 def getVersion(package, ref):
Note: See TracChangeset
for help on using the changeset viewer.