#116: koji_watcher: Pass ENVR instead of NVR
----------------------+-----------------------------------------------------
Reporter: kparal | Owner: kparal
Type: defect | Status: closed
Priority: major | Milestone:
Component: harness | Version: 1.0
Resolution: fixed | Keywords:
----------------------+-----------------------------------------------------
Changes (by kparal):
* cc: wwoods (added)
Comment:
From my trials it also seems that NVR is unique in koji. But if I don't
know the epoch of the current package, I can't judge which package is the
most recent before this one. Simply because epoch changes the whole thing.
I can receive epoch for every package when using latest_by_tag() method,
but I also need the epoch of the package I received on the command-line.
(And then I can use simply rpmUtils.miscutils.compareEVR()).
Example: [[BR]]
Imagine I receive package mc-1.5 on the command-line (epoch 1, but not
mentioned).
Now when listing latest packages in koji, I find: [[BR]]
1:mc-1.6 [[BR]]
1:mc-1.5 [[BR]]
0:mc-4 [[BR]]
0:mc-3 [[BR]]
0:mc-2 [[BR]]
How can I judge which package is the "previous" one? The only solution is
to utilize the knowledge that NVR conflicts are prohibited in koji (which
I guessed but wasn't sure) and send another request "please tell me the
epoch of mc-1.5". Only then I know that I received 1:mc-1.5 and the
previous build is 0:mc-4. Which is possible, but it is simpler and more
efficient to pass the epoch right on the command-line. What do you say,
does it seem reasonable?
--
Ticket URL: <
https://fedorahosted.org/autoqa/ticket/116#comment:3>
AutoQA <
http://autoqa.fedorahosted.org>
Automated QA project