[jhbuild] rdepends: do not fail listing rdepends of a disabled module
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild] rdepends: do not fail listing rdepends of a disabled module
- Date: Mon, 11 Aug 2014 12:04:49 +0000 (UTC)
commit 40c7ff577dd917a80408007ebb76838f40f01c37
Author: Frédéric Péters <fpeters 0d be>
Date: Mon Aug 11 14:02:46 2014 +0200
rdepends: do not fail listing rdepends of a disabled module
jhbuild/commands/rdepends.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/jhbuild/commands/rdepends.py b/jhbuild/commands/rdepends.py
index 0fe7626..87fb369 100644
--- a/jhbuild/commands/rdepends.py
+++ b/jhbuild/commands/rdepends.py
@@ -53,7 +53,8 @@ class cmd_rdepends(Command):
# get all modules but those that are a dependency of modname
dependencies_list = [x.name for x in module_set.get_module_list([modname])]
- dependencies_list.remove(modname)
+ if modname in dependencies_list:
+ dependencies_list.remove(modname)
modules = module_set.get_full_module_list(skip=dependencies_list)
modules = modules[[x.name for x in modules].index(modname)+1:]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]