NAME
update-db.pl - Maintainer utility to (re)build the bundled Bioconda::Packages database from a bioconda-recipes clone.
SYNOPSIS
# Pull the repo, rebuild the shipped database (recipes only):
perl maintainer/update-db.pl --repo bioconda-recipes
# Rebuild without pulling, enrich from anaconda.org:
perl maintainer/update-db.pl --repo bioconda-recipes --no-pull --api
# Quick test over the first 500 recipes into a scratch db:
perl maintainer/update-db.pl --repo bioconda-recipes --no-pull \
--limit 500 --db /tmp/test.json
OPTIONS
--repo PATH Path to the bioconda-recipes clone (default: ./bioconda-recipes)
--db PATH Output JSON database (default: share/bioconda-packages.json)
--pull / --no-pull git pull --ff-only before building (default: pull)
--api Enrich with published versions & downloads from anaconda.org
--api-sleep SEC Pause between API calls (default: 0)
--limit N Process at most N recipes (for testing)
--force Bump the version and rewrite even if nothing changed
--quiet Suppress progress output
--help This message
The full workflow this implements:
1. git pull the recipes clone (unless --no-pull)
2. parse every recipes/<name>/meta.yaml
3. merge with the existing database, flagging vanished packages as removed
4. (optional) enrich from anaconda.org
5. write the database atomically - but ONLY if the semantic content changed;
an unchanged rebuild keeps the same version and leaves the file untouched
(use --force to override).
After a rebuild that changed the data, commit the regenerated JSON before releasing.