From de111d64932aa72fc81cf2e6f63b832f434f5ec1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20A=C5=9F=C4=B1c=C4=B1?= Date: Wed, 23 Mar 2011 14:31:07 +0000 Subject: [PATCH] index: Ignore debug packages of obsoleted packages --- pisi/index.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pisi/index.py b/pisi/index.py index 6e2ac4a1..ddd7bdac 100644 --- a/pisi/index.py +++ b/pisi/index.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2005 - 2007, TUBITAK/UEKAE +# Copyright (C) 2005-2011, TUBITAK/UEKAE # # This program is free software; you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free @@ -111,6 +111,9 @@ 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) if pkg_name not in obsoletes_list: ctx.ui.info(_('Adding %s to package index') % pkg) self.add_package(pkg, deltas, repo_uri)