#44 Deduplicate identical dependency clauses
Closed: Fixed 6 years ago by ignatenkobrain. Opened 7 years ago by ngompa.

While reviewing a few of the crates, I noticed that rust2rpm printed out multiple identical lines of BuildRequires. This is pointless and adds more processing effort for things like rpmspec and dnf builddep and things like that.

Please deduplicate the dependencies, so the spec will be simpler and cleaner.


Do you have an example? There's normalize_deps which should coalesce identical dependencies.

It was not the case before. However, it doesn't merge multiple dependencies.

An example to test on?

I think with normalized_deps we are good enough.

Metadata Update from @ignatenkobrain:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

6 years ago

Log in to comment on this ticket.

Metadata