inspector: inject cargo dependency in runtime
Fixes: https://pagure.io/fedora-rust/rust2rpm/issue/42 Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
600c75796f
commit
9e0a872ece
2 changed files with 4 additions and 0 deletions
|
@ -91,6 +91,7 @@ Provides: {{ prv }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if include_requires %}
|
{% if include_requires %}
|
||||||
|
Requires: cargo
|
||||||
{% if md.requires|length > 0 %}
|
{% if md.requires|length > 0 %}
|
||||||
# [dependencies]
|
# [dependencies]
|
||||||
{% for req in md.requires|sort(attribute="name") %}
|
{% for req in md.requires|sort(attribute="name") %}
|
||||||
|
|
|
@ -38,6 +38,9 @@ def main():
|
||||||
print_deps(list(itertools.chain(md.requires, md.build_requires)))
|
print_deps(list(itertools.chain(md.requires, md.build_requires)))
|
||||||
if args.test_requires:
|
if args.test_requires:
|
||||||
print_deps(md.test_requires)
|
print_deps(md.test_requires)
|
||||||
|
if args.requires:
|
||||||
|
# Someone should own /usr/share/cargo/registry
|
||||||
|
print("cargo")
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Reference in a new issue