Changeset 3035 for trunk/packages/invirt-dev/python
- Timestamp:
- Jul 6, 2010, 12:27:41 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-dev/python/invirt/builder.py
r3028 r3035 29 29 return os.path.join(_REPO_DIR, 'invirt/packages', '%s.git' % package) 30 30 31 def ensureValid Repo(package):31 def ensureValidPackage(package): 32 32 """Perform some basic sanity checks that the requested repo is in a 33 33 subdirectory of _REPO_DIR/invirt/packages. This prevents weirdness … … 42 42 elif not os.path.exists(repo): 43 43 raise InvalidBuild('Nonexisting package %s' % package) 44 45 def canonicalize_commit(package, commit, shorten=False): 46 if shorten: 47 flags = ['--short'] 48 else: 49 flags = [] 50 return c.captureOutput(['git', 'rev-parse'] + flags + [commit], 51 cwd=getRepo(package)).strip() 44 52 45 53 def pocketToGit(pocket): … … 99 107 it returns True. 100 108 """ 101 ensureValid Repo(package)109 ensureValidPackage(package) 102 110 package_repo = getRepo(package) 103 111 new_version = getVersion(package, commit)
Note: See TracChangeset
for help on using the changeset viewer.