URL Fix
Details
Details
Diff Detail
Diff Detail
- Repository
- rUPGR task-upgradepath
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
kparal |
task-upgradepath |
URL Fix
NA
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
Path | Packages | |||
---|---|---|---|---|
M | upgradepath.py (2 lines) |
Commit | Tree | Parents | Author | Summary | Date |
---|---|---|---|---|---|
fb2b28be7fef | 094aa310adac | 99bf3f21797c | sumantro93 | URL fix (Show More…) | Feb 21 2017, 9:53 PM |
Show First 20 Lines • Show All 593 Lines • ▼ Show 20 Line(s) | 294 | def run_once(self, kojitag, event='post-bodhi-update-batch', **kwargs): | |||
---|---|---|---|---|---|
594 | update_details = sorted(self.update2detail.values(), key=lambda d: d.item) | 594 | update_details = sorted(self.update2detail.values(), key=lambda d: d.item) | ||
595 | details = build_details + update_details | 595 | details = build_details + update_details | ||
596 | return check.export_YAML(details) | 596 | return check.export_YAML(details) | ||
597 | 597 | | |||
598 | 598 | | |||
599 | def update_id(update): | 599 | def update_id(update): | ||
600 | '''Extract some kind of update identifier: alias or updateid or title. | 600 | '''Extract some kind of update identifier: alias or updateid or title. | ||
601 | FIXME: This is a temporary hack until Bodhi1 updates disappear from Bodhi2 system: | 601 | FIXME: This is a temporary hack until Bodhi1 updates disappear from Bodhi2 system: | ||
602 | https://phab.qadevel.cloud.fedoraproject.org/T578 | 602 | https://phab.qa.fedoraproject.org/T578 | ||
603 | @param update Bodhi update object (dict) | 603 | @param update Bodhi update object (dict) | ||
604 | ''' | 604 | ''' | ||
605 | return update.get('alias') or update.get('updateid') or update['title'] | 605 | return update.get('alias') or update.get('updateid') or update['title'] | ||
606 | 606 | | |||
607 | 607 | | |||
608 | def cmpKojiNEVR(nevr1, nevr2): | 608 | def cmpKojiNEVR(nevr1, nevr2): | ||
609 | '''Compare two Koji objects using NEVR. Handle None values. | 609 | '''Compare two Koji objects using NEVR. Handle None values. | ||
610 | @param nvr1 Koji build object or None | 610 | @param nvr1 Koji build object or None | ||
▲ Show 20 Lines • Show All 82 Lines • Show Last 20 Lines |