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:
Igor Gnatenko 2017-10-20 18:04:31 +02:00
parent 600c75796f
commit 9e0a872ece
2 changed files with 4 additions and 0 deletions

View file

@ -91,6 +91,7 @@ Provides: {{ prv }}
{% endfor %}
{% endif %}
{% if include_requires %}
Requires: cargo
{% if md.requires|length > 0 %}
# [dependencies]
{% for req in md.requires|sort(attribute="name") %}

View file

@ -38,6 +38,9 @@ def main():
print_deps(list(itertools.chain(md.requires, md.build_requires)))
if args.test_requires:
print_deps(md.test_requires)
if args.requires:
# Someone should own /usr/share/cargo/registry
print("cargo")
if __name__ == "__main__":
main()