diff --git a/pisi/replace.py b/pisi/replace.py new file mode 100644 index 00000000..9817effd --- /dev/null +++ b/pisi/replace.py @@ -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) +