devtools/devctl.py
branchstable
changeset 5456 d040889fac4e
parent 5426 0d4853a6e5ee
parent 5431 84d8b4357528
child 5473 ee87c5352e63
child 5534 b75aa6ce0c04
--- a/devtools/devctl.py	Fri Apr 30 19:58:17 2010 +0200
+++ b/devtools/devctl.py	Tue May 04 14:16:04 2010 +0200
@@ -175,9 +175,10 @@
                             'inlined:%s.%s.%s' % (etype, rschema, role))
                     add_msg(w, str(tschema),
                             'inlined:%s.%s.%s' % (etype, rschema, role))
-                if appearsin_addmenu.etype_get(eschema, rschema, role, tschema) and \
-                       (libconfig is None or not
-                        libappearsin_addmenu.etype_get(eschema, rschema, role, tschema)):
+                if appearsin_addmenu.etype_get(eschema, rschema, role, tschema):
+                    if libconfig is not None and libappearsin_addmenu.etype_get(eschema, rschema, role, tschema):
+                        if eschema in libschema and tschema in libschema:
+                            continue
                     if role == 'subject':
                         label = 'add %s %s %s %s' % (eschema, rschema,
                                                      tschema, role)