Open locobastos opened 2 years ago
Let's take a real example with Java JDK which installs multiple versions of the same package at different directory:
You can download these versions here thanks to the WayBackMachine
With this kind of package, I would like an option to ignore install folder. It means that with this option, files '/usr/java/jdk-17.0.1/conf/logging.properties' and '/usr/java/jdk-17.0.2/conf/logging.properties' should show the same result as if both packages install their files on the same folder.
Hello,
Your program is very useful is almost all cases but in some rare cases, where the package are built unconventionally, the diff report is not usable.
Let me explain:
In my company, we are building our software/web services "unconventionally", and we are installing each version in a separate folder:
Between version 1.2.0 and version 1.3.0, it may have few changes.
When I'm running pkgdiff on both RPM (we are using RPM-based Linux servers), ALL files are reported as moved (yes, it's true) with a Delta = 0%
My RFE is to hide these results when we are using the -hide-unchanged option to keep only files with real delta, even if they are moved.
To reach this point, I've changed this part of code:
https://github.com/lvc/pkgdiff/blob/master/pkgdiff.pl#L2171
to add:
This let me know which files are modified between two packages ignoring moved file without any modification.
Thank you!