diff --git a/pisi/index.py b/pisi/index.py index ddd7bdac..bda67992 100644 --- a/pisi/index.py +++ b/pisi/index.py @@ -112,8 +112,8 @@ class Index(xmlfile.XmlFile): for pkg in util.filter_latest_packages(packages): pkg_name = util.parse_package_name(os.path.basename(pkg))[0] if pkg_name.endswith(ctx.const.debug_name_suffix): - pkg_name = util.remove_suffix(pkg_name, - ctx.const.debug_name_suffix) + pkg_name = util.remove_suffix(ctx.const.debug_name_suffix, + pkg_name) if pkg_name not in obsoletes_list: ctx.ui.info(_('Adding %s to package index') % pkg) self.add_package(pkg, deltas, repo_uri)