projects
/
invirt/packages/invirt-dev.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Config structs aren't dicts, so neither []-indexing nor .get work on
[invirt/packages/invirt-dev.git]
/
python
/
invirt
/
builder.py
diff --git
a/python/invirt/builder.py
b/python/invirt/builder.py
index
b8e9c0b
..
e3280aa
100644
(file)
--- a/
python/invirt/builder.py
+++ b/
python/invirt/builder.py
@@
-31,12
+31,12
@@
def getRepo(package):
def pocketToGit(pocket):
"""Map a pocket in the configuration to a git branch."""
def pocketToGit(pocket):
"""Map a pocket in the configuration to a git branch."""
- return config.git.pockets[pocket].get('git', pocket)
+ return getattr(getattr(config.git.pockets, pocket), 'git', pocket)
def pocketToApt(pocket):
"""Map a pocket in the configuration to an apt repo pocket."""
def pocketToApt(pocket):
"""Map a pocket in the configuration to an apt repo pocket."""
- return config.git.pockets[pocket].get('apt', pocket)
+ return getattr(getattr(config.git.pockets, pocket), 'apt', pocket)
def getGitFile(package, ref, path):
def getGitFile(package, ref, path):