From 9c5d34df289e78ad5b0b0382a692813f82397f79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6k=C3=A7en=20Eraslan?= Date: Sat, 26 Mar 2011 10:33:01 +0000 Subject: [PATCH] index: Fix usage of remove_suffix. --- pisi/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)