top-level/packages-info: add pname fallback
A recent change broke the repology updater, because it relies on pname and version fields. We can fallback to *some* values temporarily, but the right fix is to make sure pname is available on all packages in Nixpkgs. That effort is ongoing, once it is complete, we should remove the fallbacks.
This commit is contained in:
@@ -25,9 +25,12 @@ let
|
||||
value = null;
|
||||
}) value.outputs
|
||||
);
|
||||
${if value ? "pname" then "pname" else null} = value.pname;
|
||||
${if value ? "system" then "system" else null} = value.system;
|
||||
${if value ? "version" then "version" else null} = value.version;
|
||||
# TODO: Remove the following two fallbacks when all packages have been fixed.
|
||||
# Note: pname and version are *required* by repology, so do not change to
|
||||
# the optional pattern from above.
|
||||
pname = value.pname or value.name;
|
||||
version = value.version or "";
|
||||
};
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user