1
0
Fork 0

More control over updating SCM repos.

This commit is contained in:
James Turner 2015-07-27 21:45:55 -05:00
parent 565feadfa6
commit 78de3e4243

View file

@ -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