index: Fix usage of remove_suffix.
This commit is contained in:
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user