This commit is contained in:
Faik Uygur
2007-06-12 18:28:43 +00:00
parent 88eb399ac8
commit 04a6c77024
+27
View File
@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2005 - 2007, 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
# Software Foundation; either version 2 of the License, or (at your option)
# any later version.
#
# Please read the COPYING file.
#
import gettext
__trans = gettext.translation('pisi', fallback=True)
_ = __trans.ugettext
import pisi.relation
""" Replace relation """
class Replace(pisi.relation.Relation):
pass
def installed_package_replaced(repinfo):
"""determine if an installed package in *repository* replaced with
given a package"""
return pisi.relation.installed_package_satisfies(repinfo)