[dia] wdeps.py: fix RemoveNonLocal()
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] wdeps.py: fix RemoveNonLocal()
- Date: Sun, 18 Nov 2012 12:35:46 +0000 (UTC)
commit 684a82978fad4fb8dfc79bf36946df44a2199e5c
Author: Hans Breuer <hans breuer org>
Date: Sun Nov 18 12:38:31 2012 +0100
wdeps.py: fix RemoveNonLocal()
to globally remove non local modules (i.e. from root)
plug-ins/python/wdeps.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/python/wdeps.py b/plug-ins/python/wdeps.py
index 5aaed63..803f966 100644
--- a/plug-ins/python/wdeps.py
+++ b/plug-ins/python/wdeps.py
@@ -342,6 +342,12 @@ def RemoveNonLocal (deps) :
for c in node.deps.keys() :
if not os.path.exists (c) :
del node.deps[c]
+ # also remove from the root
+ root_keys = deps.keys()
+ for k in root_keys :
+ if not os.path.exists (k) :
+ del deps[k]
+
def RemoveBySymbols (deps, list) :
"If a connection is conly caused by some symbol in 'list' it is removed"
for k in deps.keys() :
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]