Changeset 3042 for trunk


Ignore:
Timestamp:
Jul 6, 2010, 12:28:20 AM (14 years ago)
Author:
gdb
Message:

Don't require that a pocket exists when validating

File:
1 edited

Legend:

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

    r3041 r3042  
    77
    88import os
     9import subprocess
    910
    1011from debian_bundle import changelog
    11 from debian_bundle import deb822
    1212
    1313import invirt.common as c
     
    125125
    126126        b = pocketToGit(p)
    127         current_commit = c.captureOutput(['git', 'rev-parse', b],
    128                                          cwd=package_repo).strip()
     127        try:
     128            current_commit = c.captureOutput(['git', 'rev-parse', b],
     129                                             cwd=package_repo).strip()
     130        except subprocess.CalledProcessError:
     131            # Guess we haven't created this pocket yet
     132            continue
     133
    129134        current_version = getVersion(package, b)
    130135
Note: See TracChangeset for help on using the changeset viewer.