SlackBuilds package tool
Go to file
slakmagik b6a42615f2 download-only, pt.2
Make changes to reflect the logic that "'install' includes 'build'
includes 'download'" vs. "'build' and 'buildinstall' are separate
alternatives, both of which implicitly assume 'download'":

* Expand {QUEUE,}TYPE's possible values to include
  'download|build|install' and create set_type() to set it in place of
  'build|buildinstall' and using the DOWNLOADONLY variable and the
  {B,I}FLAGs.
  * main: delete {B,I}FLAG from the 'unset' section and from the option
    parsing
  * main, set_type(): break out the option testing error message and
    TYPE assignments into set_type() which, rather than assigning to
    TYPE in one place and testing {B,I}FLAG in another, assigns to TYPE
    unless TYPE is already set and has a different value, in which case
    we error out. (People should theoretically be able to call -d, -b,
    -i and have each trump the previous ('-b foo -i foo' should
    download, build, and install foo), but calling '-b foo -i bar' is
    problematic at best.)
  * process_queue(),start_dialog_queue(): replace 'buildinstall's with
    'install's
* Clean up sbopkg's download/build/install logging and output:
  * check_source(): log that we've found the source and return if we're
    only doing a download.
  * process_package(): s/Building/Processing/; use pre-existent
    QUEUETYPE variable with new possible value of 'download'; say we've
    downloaded and return 1 rather than just breaking.
  * log_queuetype(): create by breaking out some redundancy in
    process_queue() relating to the PRE-CHECK and SUMMARY logs and make
    it handle 'Download only' in addition to build/install.
  * process_queue(): remove references to 'PACKAGE BUILDING/INSTALLING'
    because it can be downloading also and 'PACKAGE
    DOWNLOADING/BUILDING/INSTALLING' seems excessive; use
    log_queuetype()
* main: switch the -d and -D flags. It's not good to shuffle flags
  generally, but -d is probably rarely used and download would better be
  lowercase to be consistent with -b/uild and -i/nstall.
* main: while messing with options, sorted the getopts list, the option
  parsing, and the help output as though it had been sorted with 'sort
  -f' (previously, capitalized options were inconsistently sorted).
* src/usr/doc/NEWS,src/usr/man/man8/sbopkg.8: document user-visible
  aspects of the above (-d/-D), tweaking the DESCRIPTION and the -b, -i,
  -k and -R flags in the manual.
2011-05-23 23:32:50 +00:00
src download-only, pt.2 2011-05-23 23:32:50 +00:00
tools tag and release 0.35.0 2011-04-28 03:01:06 +00:00