Changeset 2593 for trunk/packages/invirt-dev/python/invirt
- Timestamp:
- Dec 14, 2009, 8:59:28 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-dev/python/invirt/builder.py
r2587 r2593 32 32 def pocketToGit(pocket): 33 33 """Map a pocket in the configuration to a git branch.""" 34 return getattr(getattr(config. git.pockets, pocket), 'git', pocket)34 return getattr(getattr(config.build.pockets, pocket), 'git', pocket) 35 35 36 36 37 37 def pocketToApt(pocket): 38 38 """Map a pocket in the configuration to an apt repo pocket.""" 39 return getattr(getattr(config. git.pockets, pocket), 'apt', pocket)39 return getattr(getattr(config.build.pockets, pocket), 'apt', pocket) 40 40 41 41 … … 89 89 new_version = getVersion(package, commit) 90 90 91 for p in config. git.pockets:91 for p in config.build.pockets: 92 92 if p == pocket: 93 93 continue … … 106 106 (new_version, package, p, current_commit)) 107 107 108 if config. git.pockets[pocket].get('allow_backtracking', False):108 if config.build.pockets[pocket].get('allow_backtracking', False): 109 109 branch = pocketToGit(pocket) 110 110 current_version = getVersion(package, branch)
Note: See TracChangeset
for help on using the changeset viewer.