| |
@@ -106,6 +106,8 @@
|
| |
return milestone.fe_tracker
|
| |
elif tracker_type == 'PrioritizedBug':
|
| |
return None
|
| |
+ else:
|
| |
+ raise ValueError(f'Invalid tracker_type: {tracker_type}')
|
| |
|
| |
def update_milestone(self, milestone: Milestone, tracker_type: str,
|
| |
lastupdate: Optional[datetime] = None) -> None:
|
| |
@@ -119,11 +121,13 @@
|
| |
trackerid = self.get_tracker_id(milestone, tracker_type)
|
| |
assert trackerid
|
| |
self.log.info('Updating %s for Fedora %d %s (%d)' % (
|
| |
- tracker_type, milestone.release.number, milestone.version, trackerid))
|
| |
+ tracker_type, milestone.release.number if milestone.release else -1,
|
| |
+ milestone.version, trackerid))
|
| |
bugs = self.bzinterface.query_tracker(trackerid, last_update=lastupdate)
|
| |
elif tracker_type == 'PrioritizedBug':
|
| |
self.log.info('Updating %s for Fedora %d %s' % (
|
| |
- tracker_type, milestone.release.number, milestone.version))
|
| |
+ tracker_type, milestone.release.number if milestone.release else -1,
|
| |
+ milestone.version))
|
| |
bugs = self.bzinterface.query_prioritized()
|
| |
else:
|
| |
raise ValueError(f'Invalid tracker_type: {tracker_type}')
|
| |
@@ -163,12 +167,14 @@
|
| |
trackerid = self.get_tracker_id(milestone, tracker_type)
|
| |
assert trackerid
|
| |
self.log.info('Cleaning up %s for Fedora %d %s (%d)' % (
|
| |
- tracker_type, milestone.release.number, milestone.version, trackerid))
|
| |
+ tracker_type, milestone.release.number if milestone.release else -1,
|
| |
+ milestone.version, trackerid))
|
| |
tracker_depends = set(self.bzinterface.get_deps(trackerid))
|
| |
self.log.debug("Current dependencies for %d: %s" % (trackerid, str(tracker_depends)))
|
| |
elif tracker_type == 'PrioritizedBug':
|
| |
self.log.info('Cleaning up %s for Fedora %d %s' % (
|
| |
- tracker_type, milestone.release.number, milestone.version))
|
| |
+ tracker_type, milestone.release.number if milestone.release else -1,
|
| |
+ milestone.version))
|
| |
tracker_depends = set()
|
| |
else:
|
| |
raise ValueError(f'Invalid tracker_type: {tracker_type}')
|
| |
Please review per commit. These commits are included: