More control over updating SCM repos.
This commit is contained in:
parent
565feadfa6
commit
78de3e4243
1 changed files with 3 additions and 1 deletions
|
@ -16,6 +16,8 @@ parser.add_argument("--clean", help="Regenerate every package",
|
|||
action="store_true")
|
||||
parser.add_argument("--update", help="Update/pull SCM source",
|
||||
action="store_true")
|
||||
parser.add_argument("--no-update", help="Disable updating from SCM source",
|
||||
action="store_true")
|
||||
parser.add_argument("dir", help="Catalog directory")
|
||||
args = parser.parse_args()
|
||||
|
||||
|
@ -120,7 +122,7 @@ mirrorUrls = []
|
|||
existingCatalogPath = os.path.join(outPath, 'catalog.xml')
|
||||
|
||||
scmRepo = initScmRepository(config.getChild('scm'))
|
||||
if args.update:
|
||||
if args.update or (not args.no-update and scmRepo.getValue("update")):
|
||||
scmRepo.update()
|
||||
|
||||
# scan the directories in the aircraft paths
|
||||
|
|
Loading…
Add table
Reference in a new issue