## KernelDB.update_all()


Re-fetch every tracked metakernel from its source, as `skd update` does (#47).


Usage

``` python
KernelDB.update_all(
    dry_run=False,
    verbose=False,
)
```


Each metakernel lands in the root that holds it ([root_for](KernelDB.root_for.md#spice_kernel_db.KernelDB.root_for)). There is no directory argument, since one directory for metakernels from several roots would undo that. With `dry_run` each metakernel's status table is shown and nothing is written. Otherwise the missing kernels are downloaded without a per-metakernel prompt (the CLI's `--execute` is the confirmation), and the directories the metakernels point at are re-indexed once at the end. The `skd update` command passes `dry_run=True` unless `--execute` is given.

Alias rows, where a symlink stands next to its target, are skipped. A source that has gone from the server, a source that cannot be reached, and a row with no source URL are reported in the summary table and never raise.


## Parameters


`dry_run: bool = ``False`  
Show what would be downloaded and write nothing.

`verbose: bool = ``False`  
Name each directory as it is rescanned.


## Returns


`list[dict]`  
One dict per registry row walked, with the keys `filename`, `mission`, `count` and `error`. `count` is the number of missing kernels in a dry run and the number of downloaded kernels otherwise. `error` is `None` or a one-line reason.
