[jhbuild] Display the source directory for all branch types
- From: Craig Keogh <cskeogh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild] Display the source directory for all branch types
- Date: Sat, 5 Jun 2010 22:29:09 +0000 (UTC)
commit 1c3fab7bf3d6ad546ce0d96f2735395e82dd0f8f
Author: Dirk Wallenstein <halsmit t-online de>
Date: Sat Jun 5 13:22:38 2010 +0200
Display the source directory for all branch types
The srcdir property is implemented by all specific branch types. Add the
new source directory display in a way consistent with 'Tree-ID'.
https://bugzilla.gnome.org/show_bug.cgi?id=620648
doc/C/jhbuild.xml | 4 ++--
jhbuild/commands/info.py | 5 +++++
2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/doc/C/jhbuild.xml b/doc/C/jhbuild.xml
index bbe9c7a..e1b3fe1 100644
--- a/doc/C/jhbuild.xml
+++ b/doc/C/jhbuild.xml
@@ -1174,8 +1174,8 @@ libgnomecanvas is missing branch definition for gnome-2-20
</cmdsynopsis>
<para>The command displays the module name, type, dependencies,
- dependent packages, and the time it was last installed with
- JHBuild. If available, information specific to the
+ dependent packages, the source directory, and the time it was last
+ installed with JHBuild. If available, information specific to the
module type such as the CVS repository or download URL will also
be displayed.</para>
diff --git a/jhbuild/commands/info.py b/jhbuild/commands/info.py
index ff073a9..7526854 100644
--- a/jhbuild/commands/info.py
+++ b/jhbuild/commands/info.py
@@ -91,6 +91,11 @@ class cmd_info(Command):
uprint(_('Tree-ID:'), tree_id)
except (NotImplementedError, AttributeError):
pass
+ try:
+ source_dir = module.branch.srcdir
+ uprint(_('Sourcedir:'), source_dir)
+ except (NotImplementedError, AttributeError):
+ pass
# dependencies
if module.dependencies:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]