This is to avoid people building packages by default with a _SBo TAG and then redistributing.
See http://slackbuilds.org/faq/#package_repos.
Thanks to @ponce and @rworkman for suggesting this.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
view_app_file(), view_readmes(): This puts the dep info back into the
README display by cat'ing the README and grep'ing the .info file into a
temporary README. This doesn't touch the command line show_readme() as
that actually shows both the README and .info files already.
Thanks to Joni Martikainen for the suggestion.
(While editing the NEWS file, I also moved the -r item to FEATURES
since, while legal, -r combos weren't useful and now they are, so I
guess it's more a featureling than a modification.)
This primarily revises start_dialog_queue() to provide a download-only
dialog UI.
* global: make many more minor textual changes which replace 'build' and
'build queue' references with more general references including
'queue'
* info_item(): rename the 'Build' option to 'Process' (moving 'build'
into the new description of 'Download/build/install') as it always
could build or install and can now download, too.
* add_item_to_queue(),process_queue(): tweaked size of dialog widget
* start_dialog_queue(), process_queue(), main: rewrite
start_dialog_queue() as a menu which provides the download-only option
in addition to build, install, and cancel. Combine the two error
handling instances in it (which would have been three) and the one in
main into one chunk in process_queue().
* usr/doc/README{,-queuefiles}, usr/man/man*: more 'build'-related
textual tweaks
* usr/doc/THANKS: remembered to add the r905 RFE credit
Thanks to Mauro for discussion and review.
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.