jhbuild r1960 - in trunk: . jhbuild/commands



Author: malureau
Date: Thu Mar 20 21:50:02 2008
New Revision: 1960
URL: http://svn.gnome.org/viewvc/jhbuild?rev=1960&view=rev

Log:
2008-03-20  Marc-Andre Lureau  <marcandre lureau gmail com>

	* jhbuild/commands/info.py (cmd_info): skip MetaModule branch,
	instead of raising an exception in command "info".


Modified:
   trunk/ChangeLog
   trunk/jhbuild/commands/info.py

Modified: trunk/jhbuild/commands/info.py
==============================================================================
--- trunk/jhbuild/commands/info.py	(original)
+++ trunk/jhbuild/commands/info.py	Thu Mar 20 21:50:02 2008
@@ -72,7 +72,9 @@
             if module.projects:
                 print 'Moz-Projects:', ', '.join(module.projects)
 
-        if isinstance(module.branch, CVSBranch):
+        if isinstance(module, MetaModule):
+            pass
+        elif isinstance(module.branch, CVSBranch):
             print 'CVS-Root:', module.branch.repository.cvsroot
             print 'CVS-Module:', module.branch.module
             if module.branch.revision:
@@ -91,7 +93,7 @@
         try:
             tree_id = module.branch.tree_id()
             print 'Tree-ID:', tree_id
-        except NotImplementedError:
+        except (NotImplementedError, AttributeError):
             pass
 
         # dependencies



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]