Ignore:
Timestamp:
Dec 14, 2009, 8:59:28 PM (15 years ago)
Author:
broder
Message:

Rename the "git" tree in the configuration to "build" to be more accurate.

File:
1 edited

Legend:

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

    r2587 r2593  
    3232def pocketToGit(pocket):
    3333    """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)
    3535
    3636
    3737def pocketToApt(pocket):
    3838    """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)
    4040
    4141
     
    8989    new_version = getVersion(package, commit)
    9090
    91     for p in config.git.pockets:
     91    for p in config.build.pockets:
    9292        if p == pocket:
    9393            continue
     
    106106                                   (new_version, package, p, current_commit))
    107107
    108     if config.git.pockets[pocket].get('allow_backtracking', False):
     108    if config.build.pockets[pocket].get('allow_backtracking', False):
    109109        branch = pocketToGit(pocket)
    110110        current_version = getVersion(package, branch)
Note: See TracChangeset for help on using the changeset viewer.