Bug 1004450
Summary: | [RFE] rpmsodiff return non-zero if rpms differ | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | jcpunk | ||||
Component: | rpmdevtools | Assignee: | Ville Skyttä <ville.skytta> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | rawhide | CC: | a.badger, csieh, glebfm, misterbonnie, riehecky, shigorin, twoerner, ville.skytta | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | rpmdevtools-8.5-1.fc21 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 1159875 1159876 (view as bug list) | Environment: | |||||
Last Closed: | 2014-11-01 16:51:34 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Just wondering if there were any thoughts on this patch. Sorry about the delay. The reason I haven't done anything about this yet is that rpmdevtools is not the upstream for rpmsodiff, and I'd prefer this to see fixed upstream instead of carrying a modified version in rpmdevtools. I suppose the best upstream contacts are the people listed at http://packages.altlinux.org/en/Sisyphus/srpms/qa-robot, will try to ping them. (In reply to jcpunk from comment #0) > Created attachment 793750 [details] > Patch to implement behavior Thank you for idea! But your patch doesn't work in some cases: 1. in case of no common sonames, it should return 1. 2. in case of common sonames and if symbols differ. In 'while' loop works in subshell, so RETVAL=1 does not affect return code. My patch works in this cases: http://git.altlinux.org/people/glebfm/packages/qa-robot.git?p=qa-robot.git;a=shortlog;h=refs/heads/master Thanks for looking into this, Gleb! I'll leave this bug open for tracking purposes until we ship rpmsodiff that includes this feature in Fedora. rpmdevtools-8.5-1.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/rpmdevtools-8.5-1.fc21 Package rpmdevtools-8.5-1.fc21: * should fix your issue, * was pushed to the Fedora 21 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing rpmdevtools-8.5-1.fc21' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-13380/rpmdevtools-8.5-1.fc21 then log in and leave karma (feedback). rpmdevtools-8.5-1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report. |
Created attachment 793750 [details] Patch to implement behavior Description of problem: rpmsodiff provides the difference information I want, but I can't script a check to determine if the rpms match or if they do not. Version-Release number of selected component (if applicable):rpmdevtools-8.3-5.fc20 How reproducible: always Steps to Reproduce: 1. run against two identical rpms 2. echo $? 3. run against two different rpms 4. echo $? 5. note it is the same Actual results: return code is 0 Expected results: Like 'diff' if the files don't match return non-zero Additional info: