jhbuild r2598 - in trunk: . doc/C jhbuild/commands



Author: pborelli
Date: Tue Dec 23 20:09:22 2008
New Revision: 2598
URL: http://svn.gnome.org/viewvc/jhbuild?rev=2598&view=rev

Log:
2008-12-23  Paolo Borelli  <pborelli katamail com>

	* jhbuild/commands/base.py:
	* doc/C/jhbuild.xml:
	Add a "--start-at" option to the list command and document it.



Modified:
   trunk/ChangeLog
   trunk/doc/C/jhbuild.xml
   trunk/jhbuild/commands/base.py

Modified: trunk/doc/C/jhbuild.xml
==============================================================================
--- trunk/doc/C/jhbuild.xml	(original)
+++ trunk/doc/C/jhbuild.xml	Tue Dec 23 20:09:22 2008
@@ -867,6 +867,7 @@
 	<arg>-a</arg>
 	<arg>-r</arg>
 	<arg>-s</arg>
+	<arg>--start-at=<replaceable>module</replaceable></arg>
 	<arg>--tags=<replaceable>tags</replaceable></arg>
 	<arg>--ignore-suggests</arg>
 	<arg>--list-optional-modules</arg>
@@ -906,6 +907,15 @@
 	</varlistentry>
 
 	<varlistentry>
+	  <term><option>-t</option>,
+	  <option>--start-at</option>=<replaceable>module</replaceable></term>
+	  <listitem>
+	    <simpara>Show only the modules listed after the given
+            <replaceable>module</replaceable>.</simpara>
+	  </listitem>
+	</varlistentry>
+
+	<varlistentry>
 	  <term>
 	  <option>--tags</option>=<replaceable>tag,...</replaceable></term>
 	  <listitem>

Modified: trunk/jhbuild/commands/base.py
==============================================================================
--- trunk/jhbuild/commands/base.py	(original)
+++ trunk/jhbuild/commands/base.py	Tue Dec 23 20:09:22 2008
@@ -480,6 +480,9 @@
             make_option('-s', '--skip', metavar='MODULES',
                         action='append', dest='skip', default=[],
                         help=_('treat the given modules as up to date')),
+            make_option('-t', '--start-at', metavar='MODULE',
+                        action='store', dest='startat', default=None,
+                        help=_('start list at the given module')),
             make_option('--tags',
                         action='append', dest='tags', default=[],
                         help=_('build only modules with the given tags')),
@@ -510,6 +513,13 @@
                                 include_optional_modules = options.list_optional_modules,
                                 ignore_suggests=config.ignore_suggests)
 
+        # remove modules up to startat
+        if options.startat:
+            while module_list and module_list[0].name != options.startat:
+                del module_list[0]
+            if not module_list:
+                raise FatalError(_('%s not in module list') % options.startat)
+
         for mod in module_list:
             if options.show_rev:
                 rev = mod.get_revision()



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