make create_overlay
print current progress
This commit is contained in:
parent
9e884893bd
commit
906c03866f
1 changed files with 3 additions and 2 deletions
|
@ -85,7 +85,8 @@ LICENSE_MAP = {
|
|||
|
||||
def create_overlay(repository: Path, overlay: Path):
|
||||
packages: Set[str] = set()
|
||||
for family in families(repository):
|
||||
len_data = len(list(repository.rglob("METADATA.pb")))
|
||||
for i, family in enumerate(families(repository)):
|
||||
package = package_derivation(repository, family)
|
||||
if package is not None:
|
||||
name, derivation = package
|
||||
|
@ -97,7 +98,7 @@ def create_overlay(repository: Path, overlay: Path):
|
|||
dir.mkdir(parents=True, exist_ok=True)
|
||||
with open(dir / "default.nix", "w") as handle:
|
||||
handle.write(derivation)
|
||||
logging.info("Wrote derivation for %s", family.meta.name)
|
||||
logging.info("[%d / %d (%3.2f%%)] Wrote derivation for %s", i+1, len_data, 100*(i+1)/len_data , family.meta.name)
|
||||
with open(overlay / "default.nix", "w") as handle:
|
||||
handle.write(package_index(packages))
|
||||
logging.info("Created %d derivations", len(packages))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue