Add ‘force’ option to update every package
This commit is contained in:
+3
-3
@@ -16,6 +16,8 @@ parser.add_argument("--clean", help="Regenerate every package",
|
|||||||
action="store_true")
|
action="store_true")
|
||||||
parser.add_argument("--update", help="Update/pull SCM source",
|
parser.add_argument("--update", help="Update/pull SCM source",
|
||||||
action="store_true")
|
action="store_true")
|
||||||
|
parser.add_argument("--force-dirty", dest="forcedirty",
|
||||||
|
help="Mark every package as dirty", action="store_true")
|
||||||
parser.add_argument("--no-update",
|
parser.add_argument("--no-update",
|
||||||
dest = "noupdate",
|
dest = "noupdate",
|
||||||
help="Disable updating from SCM source",
|
help="Disable updating from SCM source",
|
||||||
@@ -184,13 +186,11 @@ sgprops.copy(config.getChild("template"), catalogNode)
|
|||||||
|
|
||||||
# version 3 catalog
|
# version 3 catalog
|
||||||
catalogNode.getChild("catalog-version", create = True).value = 3
|
catalogNode.getChild("catalog-version", create = True).value = 3
|
||||||
|
|
||||||
|
|
||||||
mirrorUrls = list(m.value for m in config.getChildren("mirror"))
|
mirrorUrls = list(m.value for m in config.getChildren("mirror"))
|
||||||
|
|
||||||
packagesToGenerate = []
|
packagesToGenerate = []
|
||||||
for p in packages.values():
|
for p in packages.values():
|
||||||
if p.isSourceModified:
|
if p.isSourceModified or args.forcedirty:
|
||||||
packagesToGenerate.append(p)
|
packagesToGenerate.append(p)
|
||||||
else:
|
else:
|
||||||
p.useExistingCatalogData()
|
p.useExistingCatalogData()
|
||||||
|
|||||||
Reference in New Issue
Block a user