[PATCH] setup: initially expand categories starting with "."

Igor Pechtchanski pechtcha@cs.nyu.edu
Thu Nov 17 18:10:00 GMT 2005


This patch implements one of the setup augmentations useful for the
"installation profiles idea" (for lack of a better name :-) ).
	Igor
==============================================================================
ChangeLog:
2005-11-16  Igor Pechtchanski  <pechtcha@cs.nyu.edu>

	* PickView.cc (PickView::setViewMode): Auto-expand category if
	its name starts with a dot.

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA
-------------- next part --------------
Index: PickView.cc
===================================================================
RCS file: /cvs/cygwin-apps/setup/PickView.cc,v
retrieving revision 2.26
diff -u -p -r2.26 PickView.cc
--- PickView.cc	9 Sep 2005 19:08:01 -0000	2.26
+++ PickView.cc	16 Nov 2005 19:54:58 -0000
@@ -160,7 +160,8 @@ PickView::setViewMode (views mode)
       for (packagedb::categoriesType::iterator n =
             packagedb::categories.begin(); n != packagedb::categories.end();
             ++n)
-        insert_category (&*n, CATEGORY_COLLAPSED);
+        insert_category (&*n, *(*n).first.c_str() == '.'
+				? CATEGORY_EXPANDED : CATEGORY_COLLAPSED);
     }
   else
     {


More information about the Cygwin-apps mailing list