From 8823d89f42314c4284e615b95b97439dc310b00d Mon Sep 17 00:00:00 2001 From: James Turner Date: Thu, 24 Sep 2015 20:38:54 -0500 Subject: [PATCH] =?UTF-8?q?Add=20=E2=80=98force=E2=80=99=20option=20to=20u?= =?UTF-8?q?pdate=20every=20package?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- maintain_catalog.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maintain_catalog.py b/maintain_catalog.py index 87695bf..666de65 100755 --- a/maintain_catalog.py +++ b/maintain_catalog.py @@ -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("--force-dirty", dest="forcedirty", + help="Mark every package as dirty", action="store_true") parser.add_argument("--no-update", dest = "noupdate", help="Disable updating from SCM source", @@ -184,13 +186,11 @@ sgprops.copy(config.getChild("template"), catalogNode) # version 3 catalog catalogNode.getChild("catalog-version", create = True).value = 3 - - mirrorUrls = list(m.value for m in config.getChildren("mirror")) packagesToGenerate = [] for p in packages.values(): - if p.isSourceModified: + if p.isSourceModified or args.forcedirty: packagesToGenerate.append(p) else: p.useExistingCatalogData()