[PATCH] Setup.exe: allow -p option to specify categories as well as packages

Dave Korn dave.korn.cygwin@googlemail.com
Wed Nov 4 17:32:00 GMT 2009


    Last but not least,

  I found myself wanting to run setup in unattended mode to install absolutely
everything, so I figured the nicest solution was to allow the -p option to
accept category names as well as package names, so that I could use "-p All".
 The attached patch does just that.

	* package_meta.cc (packagemeta::isManuallyWanted): Allow category
	names as well as individual package names in packages_option.
	* package_db.cc (packagedb::fillMissingCategory): Don't check for
	manually-wanted packages until after initialising all the categories.

  Tested by running it a few times with no -p options and then with -p options
for things like "Net" and/or a couple of individual packages mixed in.  OK?

    cheers,
      DaveK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: setup-cmdline-package-cats.diff
Type: text/x-c
Size: 3151 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20091104/9adf2a91/attachment.bin>


More information about the Cygwin-apps mailing list