yumrepoinfo: top_parent() should not return None
ClosedPublic

Authored by kparal on Apr 29 2014, 9:01 AM.

Details

Summary

Instead return the input repo name, if there's no parent. This is what
callers usually want, instead of None handling.

Test Plan

Tests adjusted.

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped
jskladan accepted this revision.Apr 29 2014, 9:02 AM
mkrizek accepted this revision.Apr 29 2014, 9:03 AM
kparal closed this revision.Apr 29 2014, 9:04 AM

Closed by commit rLTRNbb93fe1241da (authored by @kparal).

@tflink, this is needed for upgradepath to work, so it needs to be packaged and installed on the staging server.