diff --git a/debuginfo-install.py b/debuginfo-install.py index 0f026f1..bb61a1d 100755 --- a/debuginfo-install.py +++ b/debuginfo-install.py @@ -86,7 +86,10 @@ class DebugInfoInstall(YumUtilBase): for repo in self.repos.listEnabled(): repos[repo.id] = repo for repoid in repos: - di = '%s-debuginfo' % repoid + if repoid.endswith('-rpms'): + di = repoid[:-5] + '-debug-rpms' + else: + di = '%s-debuginfo' % repoid if di in repos: continue repo = repos[repoid]