Package description files (*-pkg.el) of package.el have been a source of trouble. Some package repositories contain one, but they are often outdated or do not correctly specify dependencies. Package authors usually do not have to contain these files, because MELPA generates them, but the authors/maintainers of such packages are less likely to respond to PRs, because those packages tend to be old.
In this PR, the following changes will be made:
For the package summary and version, prefer information from the library header. These information don't affect the build, but the version number from the package description can be inaccurate, so disregard them when possible.
Allow package description files that do not specify dependencies. This is supported at emacs-twist/elisp-helpers#28, but twist.nix requires a workaround. If the package description specifies a non-empty list of dependencies, it will be used. Otherwise, the dependencies from Package-Requires header will be used, if any.
Drop ignorePkgFile option for individual package metadata. This is likely to be unnecessary.
Package description files (
*-pkg.el
) of package.el have been a source of trouble. Some package repositories contain one, but they are often outdated or do not correctly specify dependencies. Package authors usually do not have to contain these files, because MELPA generates them, but the authors/maintainers of such packages are less likely to respond to PRs, because those packages tend to be old.In this PR, the following changes will be made:
Package-Requires
header will be used, if any.ignorePkgFile
option for individual package metadata. This is likely to be unnecessary.