Commit graph

803 commits

Author SHA1 Message Date
slakmagik
bec7c5a477 tag and release 0.35.0 2011-04-28 03:01:06 +00:00
slakmagik
5bfd6c777b bump configs/docs for 13.37/0.35.0 2011-04-28 02:55:13 +00:00
slakmagik
cb9938f2bf clarify doc list in README
Don't assume the reader knows what "queuefiles", "rename files", or
"repo files" are (even though repos and queues are briefly mentioned in
"ABOUT"). Instead, describe what they're for.
2011-04-11 04:27:40 +00:00
slakmagik
ae65597977 add a trio of renames (forthcoming in 13.37) 2011-04-11 04:27:34 +00:00
slakmagik
0243bbad57 restrict repo-based find commands to correct level
check_for_updates(), view_readmes(), search_package(), string_search(),
remove_obsolete_sources(): add mindepth/maxdepth flags (using a DEPTH
variable in string_search() (because it varies) and a FIND_FLAGS
variable in check_for_updates() (because it's reused)) to the find
commands that operate in the REPO. This will avoid matching things or
trying to use things like openvswitch/xen/foo when xen/foo is intended.
Thanks to David Somero for reporting this.
2011-03-21 01:49:25 +00:00
slakmagik
2802679789 update French man pages
Thanks to Marie-Claude Collilieux.
2011-03-20 04:23:45 +00:00
slakmagik
dd62f47dbf add SWVER replaceable parameters
and additional VERSION parms. Now examples in sbopkg(8) and README-repos
which depend on Slackware/SBo versions won't have to choose between
being updated manually or looking out-of-date but will be updated
automatically. The sbopkg VERSIONs are just to be more consistent with
other usage - while svn users won't get to have manual pages saying
'SVN', the manuals' talking about an sbopkg/SVN dir were wrong and the
other uses were at least inconsistent and it's all vcs-specific anyway.
This revision is a tip of the iceberg to a larger backend release
process change. Which. will. happen. any. day... now....
2011-03-20 04:23:38 +00:00
slakmagik
bb7509be9d minor manual modifications
* sbopkg.conf.5: removed the reference to the -O flag in the WGETFLAGS
    section, which hasn't been true since 0.20.0. I caught this in
    sbopkg.conf almost a year ago in r817 but kept missing it here. Also
    clarified where what-would-be-the-TMP-files go when CLEANUP is set
    and TMP is ignored.

  * sbopkg.8: two trivial tweaks.
2011-03-17 05:51:19 +00:00
slakmagik
0e43b44256 plain text documents: whitespace
Indent some URLs, commands, etc.
2011-03-17 05:51:13 +00:00
slakmagik
547a106c46 another pass over the plaintext documentation
Mostly minor changes, bringing things up to date. I did revert part of
r879 regarding the alpha* sorting at least for now.
2011-03-17 05:51:05 +00:00
slakmagik
1382563c13 add sbopkg bash completion file
Thanks to Sergey V.!
2011-03-17 05:51:00 +00:00
slakmagik
ac917c4847 mv usr/doc/queuefiles usr/doc/contrib/queuefiles
i.e., rename usr/doc/queuefiles/* to usr/doc/contrib/queuefiles/*

usr/contrib will provide a place to add other contrib items, such as
bash completions.
2011-03-17 05:50:41 +00:00
slakmagik
0c1bc1c8f1 correct parameter expansion in get_source_names()
The assignment to SRCNAME was trying to cut out the longest match of
'%/download' rather than cutting off '/download'. The notable practical
effect was not recognizing that we had a source in the cache, since
foo.tar.gz/download != foo.tar.gz, so downloading it again. (Again, I
wonder how this could have ever gotten through testing and, again, I
feel like this sort of botched parameter expansion has happened before,
but can't find it in the vcs.)
2011-03-15 20:46:08 +00:00
slakmagik
f678bf16ad updated French man pages
Thanks to Marie-Claude Collilieux.
2011-03-11 22:36:37 +00:00
slakmagik
d0aa4867f2 60-SBo-current.repo: change Tag
s/_custom/ponce/
2011-03-11 21:24:25 +00:00
slakmagik
112f0972ed fix a couple typo-like things in NEWS 2011-03-10 04:45:13 +00:00
slakmagik
c8f0eb2f64 another bug in selection_state()
Sure seems like I tested this and it worked but I guess I focused on
view_queue() and list_packages() at the wrong time. I knew
remove_files() (via view_cache_dir()) had a quoted list since source
names can include any kind of lunacy, unlike package names, but forgot
to allow for it. So allow zero or more dquotes around LINE.
2011-03-10 04:18:08 +00:00
slakmagik
2429774709 silence some remove_uninstalled_packages() noise
If the user tried to 'View uninstalled packages' with no packages in
OUTPUT, an error message would interrupt the dialog display for an
instant.
2011-03-10 04:18:02 +00:00
slakmagik
76e6c5ddb1 make README symlinks; modify build-related files
A cluster of changes related to creating symlinks in the
  /etc/{renames,repos}.d directories that point to the corresponding
  README in sbopkg's docdir and then generally updating most
  build-related files and getting it all documented.

  * 50-default: renamed to 50-default.renames

  * NEWS: note symlink docs and rename issues

  * README-renames: update to reflect new default filename and the fact
    that the files must end in '.renames'.

  * sbopkg.conf.5, sbopkg.8: update to reflect the new renames stuff
    (and the earlier repo file/dir-related changes I forgot to document
    there).

  * sbopkg: get_new_name(), get_old_name(): have grep only look through
    *.renames files and not, say, symlinks to READMEs.

  * doinst.sh: bring into alignment with the current SBo template.

  * tools/sbopkg.SlackBuild: make links from README-repos and
    README-renames to READMEs in the corresponding /etc/sbopkg/*.d
    directories.

  * tools/slack-desc: bring into alignment with the current SBo
    template.

  * tools/sspm: update address, add printe() and use it.
2011-03-10 04:17:52 +00:00
slakmagik
68c8b94414 rename sbopkg.conf.new; tweak SlackBuild
If we keep the Id keyword in sbopkg's config file, users having their
'sbopkg.conf' Id'ed as 'sbopkg.conf.new' can cause confusion, as seen on
LQ. So call it 'sbopkg.conf' in revision control and append '.new' when
creating the package.
2011-03-10 04:17:43 +00:00
slakmagik
c4836b950a modify repository selection
This is a cluster of changes that fell out from adding the new repo
  file earlier.

  * select_repository(): changed the function to create a larger box
    with a different title and text and reordered menu items, both
    vertically (via the previously changed repos.d files) and
    horizontally (via reordering the item text). Also fixed a bug
    discovered while testing, which involves changing the repo even when
    directory creation is aborted. Now we store OLD_* vars and restore
    them and re-run set_repo_vars() on abort.

  * utilities_menu(): equivalent reordering.

  * dir_init(): changed to produce hopefully better output rather than
    wrongly implying that a directory that does exist doesn't. Also some
    ad hackery for git. I'm tempted to throw the whole function out -
    some programs might ask about mucking with a users $HOME but most
    don't ask to create necessary system files.

  * main: modified how we acquire REPO_NAME and REPO_BRANCH when
    CUSTOMVER is set.

  * NEWS: caught up with this and other recent changes.
2011-03-10 04:17:36 +00:00
slakmagik
5ee8266b57 add 60-SBo-current.repo; revise repo/renames files
Adding ponce's branch/fork thing of SBo for -current - it's supported as
far as including this to make it easier for people to use but no
further. Also got rid of most of the comments in the other files - there
are no user-serviceable parts inside and the filenames and descriptions
describe the files well enough, so this just keeps the key line. We'll
be linking the README in the repos.d directory so we can just say 'read
the README', especially as I recently changed the filename of the
README.
2011-03-10 04:17:28 +00:00
slakmagik
7905937465 add SBOPKG_DEBUG
Set this to anything and avoid the stupid sucking side effects of
redirecting stderr.

Also abbreviated a comment right above what I added - it's not first run
but every run and the end of functions pretty much implies the start of
main.
2011-03-10 04:17:22 +00:00
slakmagik
d91fc3842a rename(number) the local and sb64 repo files
/etc/sbopkg/repos.d/50-sb64.repo -> /etc/sbopkg/repos.d/70-sb64.repo
/etc/sbopkg/repos.d/60-local.repo -> /etc/sbopkg/repos.d/50-local.repo

This places the unsupported repo after the local repo and makes ?0 room
for Ponce's (also unsupported) repo.
2011-03-10 04:17:15 +00:00
slakmagik
cf9de08744 whitespace: split lines >78 cols
Some more of this snuck back in or never got split in the first place -
this is just whitespace/escaped newline stuff except I did create a
local VER variable in get_source_names() to shorten a line with several
references to VERSION.
2011-03-10 04:17:09 +00:00
slakmagik
8b3d568e11 revise most of doc/*
- KNOWN_ISSUES: rephrase the dialog navigation section in a way that
    should be more suitable for the forthcoming (when it's ready)
    Slackware release which will have an updated dialog. Rephrase the
    certcheck section to discuss the prompt behavior and to point out
    how the 'openssl-certs' package can help with, but not eliminate,
    the issue.

  - NEWS: add an item summarizing these document revisions and add the
    branch ChangeLog sections.

    When we started what became 0.30.0, we created an 0.27.0 stable
    branch and the changes in that branch were only included in that
    branch's ChangeLog.txt. Ditto the 0.33.1 security branch. But all
    releases should be documented in the NEWS file, so now they are.

  - README: add a block that describes all the other doc/ files, add a
    note about GPG checking, change the name of the HELP section to
    GETTING HELP.

    Some of the doc files are mentioned in the CONTRIBUTING section but
    a comprehensive list with descriptions in the GETTING HELP section
    is more, um, helpful.

  - README-*: tweak the wording, mostly to reflect the last commit's
    name change, and reorder some text to put the emphasis on the files
    rather than the directory. Also make a couple of other tweaks.

  - THANKS: add a note about making corrections and slightly reorder the
    text around that change for better flow and emphasis.
2011-03-08 03:38:19 +00:00
slakmagik
b642be5cf3 rename the *.d files, stripping the .d
The .d is treated as an extension which triggers unwanted syntax
highlighting in vim - there are multiple ways around this but the .d
extension isn't necessary (queuefiles are also kept in a directory but
it isn't 'README-queuefiles.d' and the READMEs discuss files and formats
as much as directories) and removing it is the simplest, most effective,
most general change.
2011-03-08 03:37:59 +00:00
slakmagik
eab30f62f4 fix anchoring bug in selection_state()
If foo and foobar were in a list and foobar was deselected, it would get
switched back on because foo would equally address foobar. So
s/$LINE/^$LINE /
2011-03-07 11:44:16 +00:00
slakmagik
bdcb49f2a3 allow -Rp combo to page through all READMEs
This modifies list_packages() to call view_readmes() if VIEW_READMES is
set (and that variable was changed from PREVIEW_READMES). And it
documents it in the manual, help output, and NEWS.
2011-03-07 01:27:10 +00:00
slakmagik
d79029a5c2 document gist of changes from r866-current 2011-03-07 01:27:02 +00:00
slakmagik
105e182449 modify view_queue() to use selection_state()
Traded a block of code for the function call and removed references to
the now unused WORKINGQUEUE.
2011-03-07 01:26:56 +00:00
slakmagik
511ef6f26f make remove_files() actually invert sel., etc.
- remove_files(): this had an 'Invert all' button which didn't
    entirely work, as it simply toggled all on/off rather than
    reflecting selection state (it was more 'Select/Deselect All'). By
    changing the order of the buttons and using selection_state(), it
    now can now 'Invert Sel'ections. The button order had to be juggled
    because dialog only outputs a list on 0/3. So now it asks to delete
    and defaults to Cancel with '--defaultno' rather than asking to keep
    and defaulting to OK. Also cleaned up the dialog invocation in
    general and cleaned up the sed/redirect creation of
    $FILES_CHECKLIST. Also changed the 'ERROR' title for not finding
    anything to 'NOTICE' since it's not an error to, e.g., not have any
    obsolete sources.
  - reverse_choices(): deleted since it was no longer used.
  - remove_obsolete_sources(), browse_categories(): similar sed cleanups
    as above.
  - selection_state(): clarified comments, remembered to add LINE as a
    local var, and anchored a regex whose $ got lost.
2011-03-07 01:26:50 +00:00
slakmagik
9677e0ebf9 modify list_packages() to preserve state, etc.
This creates selection_state() (so that the user's selections can be
preserved when the menu is regenerated in the loop) and breaks out
mk_pkg_lists() (so that, when packages are removed, they are also
removed from the menu). Before, this simply broke out of the loop but
that forced the user to re-enter the menu if they wanted to do anything
else with it.
2011-03-07 01:26:43 +00:00
slakmagik
2adf86f041 make list_packages() loop
Wrap list_packages()'s main dialog widget in a while loop so the user
can return to deletion selection after reading readmes. Also correct the
text in the widget (s/uninstall/remove./).
2011-03-07 01:26:32 +00:00
slakmagik
c3eb9de996 create nvabt2n(); revise list_packages()
PKG_LIST is now no longer used directly but makes for easier
manipulation into both PKG_CHECKLIST for the dialog menu and README_LIST
(created via nvabt2n()) as input for view_readmes(). Added the extra
button that calls view_readmes() with README_LIST.

While I was here, changed the package removal confirmation dialog to use
'--separate-output' and dumped the tr that was removing the quotes
dialog otherwise puts in.
2011-03-07 01:26:27 +00:00
slakmagik
31b07d91cc generalize view_readmes()
view_readmes() now takes two arguments for header text and input,
doesn't bother displaying 'DISABLED' packages if not displaying from a
queue, and has a fuzzier dialog title.
2011-03-07 01:26:21 +00:00
slakmagik
6389034312 rename view_queue_readmes() to view_readmes() 2011-03-07 01:26:15 +00:00
slakmagik
8155da8773 change VARNAMES to VAR_NAMES
Also drop the overly-specific 'SBO' from SBOPKGLIST as it's actually
whatever $REPO is.
2011-03-07 01:26:09 +00:00
slakmagik
bb87b804fa rename get_sbo_packages() to list_packages() 2011-03-07 01:26:03 +00:00
slakmagik
6ad3f472d7 updated French man pages
Thanks to Marie-Claude Collilieux.
2011-03-03 20:35:29 +00:00
slakmagik
b09d37c2f6 fix documentation bug regarding ~/.sbopkg.conf
Document the fact that (since 0.25.0) settings in the system
configuration file can be overridden with a private configuration file.
Thanks to Bill Kirkpatrick on sbopkg-users for raising this issue.

Also catch up on the NEWS file while adding this item.
2011-03-02 23:49:09 +00:00
slakmagik
07a8ec3d84 fix download failure
When an http url 301ed to an https and the certificate check failed,
sbopkg's certcheck code was not being triggered, causing the download to
fail. Thanks to vbatts for raising this issue.
2011-02-19 21:32:29 +00:00
slakmagik
72a0269454 updated French man pages in trunk
Thanks to Marie-Claude Collilieux.
2011-02-12 03:06:23 +00:00
slakmagik
da4a9ea2f8 update copyrights
Thanks to dive for reminding me. :)
2011-02-08 22:16:34 +00:00
slakmagik
5e6a72963e tag and release 0.34.1 2011-02-05 04:34:55 +00:00
slakmagik
f81a42eb13 minor changes to sbopkg's SlackBuild 2011-02-05 04:19:36 +00:00
slakmagik
6b5df12c1c two sbopkg(8) tweaks
Changed a line which made it almost sound like sbopkg might randomly
replace the config file, making it clear it's under user control.

Modified (mostly removed) the paragraph (similar to one in the README
that was also recently modified/removed) about sbopkg not really
supporting build chains. It isn't *guaranteed*, but doesn't need to
sound like some random fluke.
2011-02-05 03:19:23 +00:00
slakmagik
497e34feaf two tweaks noticed in testing
Exported TMPDIR from sbopkg.conf.

Worded the error message on mktemp failure to hopefully be more helpful
by suggesting a likely cause of failure.
2011-02-05 03:19:19 +00:00
slakmagik
0cd0d3ae7f updated NEWS/THANKS to reflect r853 2011-02-05 03:19:14 +00:00
slakmagik
482aed1f9b revise documentation
Major reformatting and some textual modifications of
src/usr/doc/sbopkg-*/* including breaking out the credits from the
script into a detailed THANKS file, renaming and reformatting
ChangeLog.txt into NEWS, renaming the sample queuefiles from *.sqf to
*.sqf.sample, and making lesser modifications to all the other docs.
2011-02-05 03:18:48 +00:00