blob: 8be2ef530b9ad67cae58ebede0709b18165cb578 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/usr/bin/env python
import argparse
import sys
import json
import common
from devbot import build
parser = argparse.ArgumentParser()
parser.add_argument("module", nargs="?", help="name of the module to pull")
parser.add_argument("--revisions", help="json dict with the revisions to pull")
args = parser.parse_args()
common.setup(log_name="pull")
if args.module:
if not build.pull_one(args.module):
sys.exit(1)
else:
revisions = {}
if args.revisions:
revisions = json.loads(args.revisions)
if not build.pull(revisions):
sys.exit(1)
|