Package Metadata Fields
Overview
Each package has a metadata file at metadata/<package>.json. Two fields control how
Hummingbird treats local changes and rebuilds relative to Fedora:
| Field | Purpose |
|---|---|
modification_status |
Whether the package may be auto-updated from Fedora |
release |
Fedora release from which this package was imported |
This page is the canonical reference for configuring those fields. For day-to-day workflows (marking packages, rebuilding, importing), see the related docs at the end.
modification_status
modification_status records whether a package still matches its Fedora upstream import, has
local source-level changes, or is Hummingbird-independent (not from Fedora).
| Status | Meaning | Auto-updates from Fedora |
|---|---|---|
clean |
Unmodified Fedora import | Allowed |
modified |
Local changes (patches, spec modifications) | Blocked |
independent |
Hummingbird-independent package (not from Fedora) | Blocked |
When to use each value
clean: Default for packages imported from Fedora with no local source changes. Automatic Fedora updates are allowed. Conflicts withmodification_reason(must be absent).modified: Use after backports, custom patches, or other spec/source edits that must not be overwritten by an automatic update. Requiresmodification_reason.independent: Required for packages that are not imported from Fedora. These packages have nosource/branch/shafields. Conflicts withmodification_reason(must be absent).
Imports set the status automatically (clean for Fedora imports, independent for Hummingbird-independent
imports). After local source changes, set status with dist_git.py mark-modified — see
Package Modification Tracking.
Rebuilds that only bump the spec Release: line do not change modification_status.
Release-only changes are ephemeral and are ignored when deciding whether a package is modified
versus clean.
modification_reason
When modification_status is modified, modification_reason is required. It should be a short
explanation of why the package cannot be auto-updated (for example, a CVE backport or a custom
spec change). Clear the reason when marking the package clean again.
modification_reason applies only to modified packages. Do not add it for clean or independent
packages — see When not to update these fields.
release
The release field in metadata is not the same as the Release: line in the package spec. It
records the Fedora release from which the package was imported, without a dist tag such as .fc42
or .hum1. It is present only when Hummingbird ships Fedora’s release.
| Location | What it represents |
|---|---|
metadata/<package>.json → release |
Fedora release from which the package was imported, without its dist tag |
Spec Release: |
The release used for the Hummingbird build (includes %{?dist} / .hum1, and may include local .N rebuild suffixes) |
Who writes metadata release
| Writer | When | Value stored |
|---|---|---|
dist_git.py import / update / sync |
Fedora import or refresh | Resolved Fedora release with dist suffix stripped (e.g. 5 from 5.fc42) |
check_upstream_versions.py |
Local upstream version bump (check --update) |
Removes release, because the new spec release is not from Fedora |
Fedora-imported packages
For packages with a Fedora source:
releaseis set on import and refreshed ondist_git.py update/syncfrom the upstream Fedora package (dist suffixes like.fc42are stripped). That is the Fedora/rawhide base.- When
check_upstream_versions.py check --updatebumps the package ahead of Fedora, it resets the spec toRelease: 0.1%{?dist}(unless%autorelease) and removes metadatarelease. The local0.1is not a Fedora-confirmed release. - Do not change metadata
releaseduring local rebuilds or backports. Rebuilds bump only the specRelease:line; when no Fedora baseline exists,rebuildadvances0.1to0.2. - When Fedora’s baseline is
Release: %autorelease, metadatareleasestores the resolved numeric release from MDAPI (not the literal%autorelease). Import/update replace%autoreleasein the local spec with that value plus%{?dist}. For rebuilds that still see%autorelease, follow Rebuilding Packages.
Independent packages
For Hummingbird-independent packages (modification_status: "independent", no source field):
- There is no Fedora upstream release, so metadata does not contain
release. - The
.hum1suffix comes from the specRelease:line via%{?dist}(for exampleRelease: 1%{?dist}), not from metadatarelease. dist_git.py rebuilddoes not use metadatareleasefor independent packages.
Spec Release: vs metadata release
No-change rebuilds and reverse-dependency rebuilds change the spec Release: only. See
Rebuilding Packages. When dist_git.py update or sync imports a
Fedora version, it records that Fedora release in metadata. Local patches merged onto that version
retain the Fedora release baseline. When check_upstream_versions.py moves a package to an
upstream version ahead of Fedora, it removes metadata release.
When not to update these fields
Most day-to-day package work changes the spec, sources, or patches — not metadata
modification_status, modification_reason, or release. Leave those fields alone unless the
package’s relationship to Fedora actually changed.
| Situation | Do not change | Why |
|---|---|---|
| Independent package gets a CVE patch, backport, or other source edit | modification_status, modification_reason |
Status stays independent. There is no Fedora auto-update to block, so do not switch to modified or add a modification_reason. |
No-change rebuild (spec Release: bump only) |
modification_status, modification_reason, metadata release |
Rebuilds are ephemeral. Status stays unchanged; metadata release continues to record a Fedora baseline when one exists. |
| Fedora-imported package gets a local patch or backport | metadata release |
Mark the package modified with a reason, but keep metadata release as the last Fedora baseline. Only bump the spec Release: if needed. |
Package is already modified and you add another local change |
modification_status |
Leave status as modified. Update modification_reason only if the existing reason no longer describes why auto-updates must stay blocked. |
| Upstream Fedora update lands and you want auto-updates again | (do not leave stale fields) | Mark clean (clears modification_reason). Do not hand-edit release; let dist_git.py update refresh version/release from Fedora. |
Examples
Independent package + CVE fix: Edit the spec and add the patch. Keep:
{
"modification_status": "independent",
"version": "1.3.0"
}
Do not add modification_reason, and do not change status to modified.
Fedora package + CVE backport: After the patch, mark modified so auto-updates stay blocked:
./ci/dist_git.py mark-modified <package> --modified \
--reason "Backport CVE-2024-12345"
Do not edit metadata release as part of that change.
Rebuild only: Use dist_git.py rebuild (or bump the spec Release:). Leave metadata
modification_status and release unchanged.
Related documentation
- Package Modification Tracking — mark packages modified/clean, check status, validation, and update hooks
- Rebuilding Packages — bump spec
Release:for no-change rebuilds and backports - Adding Independent Packages — create metadata for packages not from Fedora
- Updating Dist-git Packages — import and update from Fedora