Changeset 2801 for trunk/packages


Ignore:
Timestamp:
Dec 28, 2009, 1:35:21 PM (15 years ago)
Author:
broder
Message:

Superproject, not superrepo, is git's term for a repo that contains
submodules.

Make that replacement everywhere.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-dev/invirtibuilder

    r2593 r2801  
    88If the build succeeds, the new version of the package is uploaded to
    99the apt repository, tagged in its git repository, and the Invirt
    10 superrepo is updated to point at the new version.
     10superproject is updated to point at the new version.
    1111
    1212If the build fails, the Invirtibuilder sends mail with the build log.
     
    174174
    175175
    176 def updateSuperrepo(pocket, package, commit, principal):
    177     """Update the superrepo.
     176def updateSuperproject(pocket, package, commit, principal):
     177    """Update the superproject.
    178178
    179179    This will create a new commit on the branch for the given pocket
     
    181181
    182182    Note that there's no locking issue here, because we disallow all
    183     pushes to the superrepo.
    184     """
    185     superrepo = os.path.join(b._REPO_DIR, 'invirt/packages.git')
     183    pushes to the superproject.
     184    """
     185    superproject = os.path.join(b._REPO_DIR, 'invirt/packages.git')
    186186    branch = b.pocketToGit(pocket)
    187187    tree = c.captureOutput(['git', 'ls-tree', branch],
    188                          cwd=superrepo)
     188                         cwd=superproject)
    189189
    190190    new_tree = re.compile(
     
    194194
    195195    new_tree_id = c.captureOutput(['git', 'mktree'],
    196                                 cwd=superrepo,
     196                                cwd=superproject,
    197197                                stdin_str=new_tree)
    198198
     
    203203    new_commit = c.captureOutput(
    204204        ['git', 'commit-tree', new_tree_hash, '-p', branch],
    205         cwd=superrepo,
     205        cwd=superproject,
    206206        env=env,
    207207        stdin_str=commit_msg)
     
    209209    c.captureOutput(
    210210        ['git', 'update-ref', 'refs/heads/%s' % branch, new_commit],
    211         cwd=superrepo)
     211        cwd=superproject)
    212212
    213213
     
    330330                    db.failed_stage = 'updating submodule branches'
    331331                    updateSubmoduleBranch(pocket, package, commit)
    332                     db.failed_stage = 'updating superrepo'
    333                     updateSuperrepo(pocket, package, commit, principal)
     332                    db.failed_stage = 'updating superproject'
     333                    updateSuperproject(pocket, package, commit, principal)
    334334                    db.failed_stage = 'uploading packages to apt repo'
    335335                    uploadBuild(pocket, workdir)
Note: See TracChangeset for help on using the changeset viewer.