call get_iface() to check comar existance

This commit is contained in:
Bahadır Kandemir
2008-01-17 14:40:30 +00:00
parent 1e42bcab28
commit 30a7488b30
+14 -1
View File
@@ -1,6 +1,6 @@
Index: comariface.py Index: comariface.py
=================================================================== ===================================================================
--- comariface.py (revision 16686) --- comariface.py (revision 16699)
+++ comariface.py (working copy) +++ comariface.py (working copy)
@@ -25,117 +25,126 @@ @@ -25,117 +25,126 @@
pass pass
@@ -198,3 +198,16 @@ Index: comariface.py
+ sys_iface.remove(object_name) + sys_iface.remove(object_name)
+ except dbus.DBusException, exception: + except dbus.DBusException, exception:
+ raise Error, _("Script error: %s") % exception + raise Error, _("Script error: %s") % exception
Index: atomicoperations.py
===================================================================
--- atomicoperations.py (revision 16699)
+++ atomicoperations.py (working copy)
@@ -146,7 +146,7 @@
# check comar
if self.metadata.package.providesComar and ctx.comar:
import pisi.comariface as comariface
- comariface.get_comar()
+ comariface.get_iface()
def check_relations(self):
# check dependencies