rpmlint icon indicating copy to clipboard operation
rpmlint copied to clipboard

Redo the rpmdiff behavior?

Open scarabeusiv opened this issue 7 years ago • 4 comments

With difflib from python core we could generate unified diff look alike for the rpm changes instead of printing added/removed....

Do we happen to have some set requirements for what rpmdiff should actually do? Also some of the file attributes diffing is dependant on the underlying FS so it might be good idea to create tmpfs where we would do the files comparison...

scarabeusiv avatar Sep 15 '18 14:09 scarabeusiv

@dirkmueller @Conan-Kudo What would be your opinions on the above? Also note that any changes in the cli interface will have to come when I finish with reducing the pkg.py blobie.

scarabeusiv avatar Sep 15 '18 14:09 scarabeusiv

I like the idea of a unified diff-style view, as it's something people can easily comprehend on changes.

Could we also do that for RPM payload information (metadata, deps, etc.)?

Conan-Kudo avatar Sep 15 '18 14:09 Conan-Kudo

Also, I vaguely recall that Koji has a vendored copy of rpmdiff. I don't see why Koji shouldn't just use ours, now that it's usable as a module.

@mikem23, @tkopecek, what are your requirements from rpmdiff for Koji?

Conan-Kudo avatar Feb 15 '20 15:02 Conan-Kudo

Very briefly, we do a comparison of noarch rpms generated on each architecture and looking for significant differences (rpmdiff -S5TN). Further we're caching hash of this data, to compute it only once. This is probably the most significant difference. Otherwise, it is quite simple rpmdiff-like code (https://pagure.io/koji/blob/master/f/koji/rpmdiff.py)

tkopecek avatar Feb 17 '20 12:02 tkopecek