Commit Graph

764 Commits

Author SHA1 Message Date
slakmagik
3a92318fa8 fixed command line search with the -s/-g flags
* search_package(): modified to return a sorted list
* gen_search_package(): moved my select menu to the new function.
* search_and_display(): new function which takes one or more arguments
  (literal or quoted globs) from the command line (-s) and uses
  search_package() to return an array of possible matches. If more than
  one app is returned, it presents the user with a menu. It displays the
  standard files associated with the app the user chooses. If
  search_package() only returns one app, it displays the associated
  files immediately. Despite being a new function, this merely restores
  old functionality (albeit somewhat improved) which had been broken.
* main: moved the old code from the SEARCH test block to the new
  function, replacing it with a call to that function.
* main: temporarily disabled pathname expansion in part of the GENSEARCH
  test block (and in part of the new function) so it wouldn't break if
  someone searched for 'fu*' with a 'fubar' file in the current
  directory.

Also modified the man page and one comment regarding details of these
flags/functions.
2010-06-29 14:56:42 +00:00
chess.griffin
29c2e449e5 fix an ARCH display issue in the updates screen; thanks to alkos333, Marc Payne, and David Spencer for confirming the issue, and thanks to David for testing the fix. 2010-06-18 01:49:31 +00:00
slakmagik
183aa1e372 created fix_urls() to handle quirky URLs
This broke out a sed line used in a couple of places (and which needed
to be extended) into a commented function. This specifically addresses
dzen2, as well as the zarafa problems found while dealing with dzen2.
Also tightened up a regex that caused problems while dealing with
similar quirks. Also modified comments in these areas.

Note that virtualbox (no longer a problem) and calcurse (now
specifically handled) were handled by two generic substitution commands,
which have been removed. If these commands were catching things besides
virtualbox and calcurse, this will cause a regression but it's not
considered likely; it will let us know what *needs* to be fixed; and it
should be easy to do so.
2010-06-17 19:06:08 +00:00
slakmagik
87ee1582a2 updated ChangeLog
Also removed a bit of brain damage (long day). Also, thanks to Chess and
Mauro for review and discussion of the prompt patches.
2010-06-15 00:18:40 +00:00
slakmagik
22f8de1ad5 revised error_read and its calls
Brought the error_read() calls more into conformance with standard
'read's. Two items still differ significantly: since the 'read' is in
error_read() and must handle a variety of prompts, prompts are done
before the call with 'printf's and since error_read is restricted to Y/N
values, the prompts have to use those for at least two of their options.

* error_read(): modified comments to reflect current status. Made read
  use '-e' like the rest of the reads. Got rid of the '$1's and 'eval's
  and used a simple assignment to REPLY. While the "(as specified with
  '-e')" echo should never happen unless ON_ERROR was set to
  stop/continue, it's still better to assign it to a variable tied
  directly to where it's supposed to occur.
2010-06-14 23:54:31 +00:00
slakmagik
69224bfd1c made user prompts more consistent
All direct uses of the 'read' builtin are now close to the following
format: possibly a block of statement text to the user output by
whatever means are handiest then, if not an 'anykey' prompt, a loop
which prompts and checks for valid input. The prompt is generally a
concise line in the forms of

    read -p "(A)pples or (O)ranges?: "
    read -n1 -p "Press any key to continue: "

Then a case statement handles the input in the format:

    A|a) apple_action ;;
    O|o) orange_action ;;
    *) unknown_response ;;

Also misc minor changes such as modifying wording or option letters,
changing linebreaks in case statements, etc.

Beyond simple wording changes in the statement text, there was also:

* remove_files(): removed the 'echo -e foo\n' which seemed unnecessary.
* use_options(): added the SAVEDOPT and QUEUEOPT variables which are
  used in read's prompt to customize it to the nature of the actually
  possible choices and removed the 'else's we don't need to display.
2010-06-14 23:54:26 +00:00
slakmagik
a21d663040 combined/revised install_package()/do_install()
* do_install(): moved a revised form into install_package(), removing
  this one.
* install_package(): tried to make sure we local-ized all the vars we
  need; saved two variables and two stat calls with one find; put a
  missing loop around our read prompt; made the key line the argument of
  read's -p flag; put the breaks and returns in the right places; and,
  in terms of what was brought in from do_install(): removed the unused
  loop from around the rename check and upgradepkg call; modified
  variables to use install_package()s and dequoted the surviving
  PKG_NAME.
2010-06-14 23:54:21 +00:00
slakmagik
2ee1c2345a reversed ChangeLog handling and updated it
Now we write changes to */src/usr/doc/ChangeLog.txt and generate
*/tools/ChangeLog-latest.txt. User visible changes since the last
release were added to the former.

Also re-added a re-re-rename that SBo keeps waffling about. ;)
2010-06-14 04:47:10 +00:00
chess.griffin
1ca33a80d9 fix URL to changelog at sbopkg.org (now a direct to ChangeLog in SVN) 2010-06-14 02:17:23 +00:00
slakmagik
e22a5a3574 replaced read fallbacks with new unknown_response()
* unknown_response(): new function to specify calling function and
  unknown input in the error message.
* any functions with '{error_,}read's in them: replaced 'local ANS/read
  ANS/case $ANS' with 'local REPLY/read/case $REPLY' and all '*) Unknown
  response' with '*) unknown_response'.
* several functions: added missing 'local REPLY'
* get_source(): removed stale 'ANS'
* read_info(): reformatted case statement

Also made two other probably unnecessary changes to help with hunting an
elusive bug.

* error_read(): modified to loudly bomb out if it's somehow acquired an
  impossible value.
* main: modified ON_ERROR so it's even more impossible for it to get the
  wrong value.
2010-06-12 01:37:44 +00:00
slakmagik
2447fd7a14 re{named,wrote} directory_checks() into dir_init()
Previously, the user was confronted with 7 prompts for directory
creation on first run to which they could hit enter or ^C in response.
The main purpose of this revision is to provide a nice printout and a
single question to which they can hit 'y/n'.

This led to a cascade of changes but it's all focused on establishing
sbopkg's needed directories and even results in fewer loc.

* directory_checks(): replaced with dir_init()
* config_check(): the ALLOW_MULTI check there was creating a directory
  rather than checking the config, so moved it to dir_init(). Also made
  the directory creation non-interactive since it's only creating a
  tmpdir in an already-created sbopkg directory.
* sync_repo(): moved the directory_check() call to select_repository()
  since being able to switch repos mid-run in the dialog
  select_repository() interface is the direct (and only) reason for
  calling dir_init() after startup. Removed the check_write() call and
  all the rest related to it as it was no longer needed.
* select_repository(): aside from gaining the item just mentioned, the
  'save setting' dialog was wrapped in a conditional based on whether
  the user actually chose to create the new repo dir.
* ck_dir(): removed. The seven calls in directory_checks() went with
  that function and the one in config_check() was also removed, since
  it's now handled by dir_init() non-interactively, leaving it unused.
* check_write(): removed. The single call from sync_repo() was removed,
  as discussed above, leaving it unused.
* pid_check(): now does a quick check for ALLOW_MULTI, making that a black
  box that does the right thing.
* main: as just mentioned, the ALLOW_MULTI check was moved into
  pid_check(). ALLOW_MULTI already gets special treatment in cleanup()
  and did in config_check() and does in dir_init(), so it might as well
  in pid_check() rather than being tested for in main. And, of course,
  replaced the directory_checks() call with one to dir_init().
2010-06-12 01:10:32 +00:00
slakmagik
7355d65b9f reordered sections and items in sbopkg.conf.new
Also reformatted comments to 72 cols. No textual/functional changes.
2010-06-12 01:00:21 +00:00
slakmagik
65289af69c modified parameter expansions in sbopkg.conf.new
Modified all parameter expansions to use default values.

Also tweaked some wording and spacing and fixed an sbopkg-breaking typo
from the last commit of this file.
2010-06-12 01:00:17 +00:00
slakmagik
a441d09eba Modified documentation to (almost) auto-update
Replaced variable data with 'xxxDATAxxx' tags. The tags are replaced by
the revised release script. This way, only that file needs to have,
e.g., 'size' changed and it will propagate to the README and both
manpages, rather than requiring three separate edits. Also, sbopkg.conf
and sbopkg.conf(5) will always automatically be in sync.
2010-06-08 02:59:46 +00:00
slakmagik
8ecc889b18 Copyrights, timeouts, typo
A shotgun commit that updates the copyright notices, bumps the default
timeouts of rsync and wget from 10/15 to 30 and fixes a doubled word.
2010-06-02 23:26:03 +00:00
slakmagik
7461e231fa Change DEBUG to DEBUG_UPDATES
Also shortened how we test for whether DEBUG(_UPDATES) is 0,1,2 and made
DEBUG_UPDATES use default values if unset, rather than being set
directly to a default value.

This entire variable may be removed shortly but, until then, there's
this.
2010-06-02 23:06:02 +00:00
slakmagik
4b35bdf032 Yet more manpage tweaks and cleanups
In HACKING, I moved two points, modified two points, moved and modified
one point, and added two points. I also separated all points with a
blank line as is consistent with the first list in the file.

In both man pages, I shortened most 'SlackBuilds.org' references to
'SBo'; shortened most 'SlackBuild scripts' references to 'SlackBuilds';
added some missed root prompt symbols; and added a few missed .Bs and
.Is or flipped a wrong one for the right one.

In sbopkg.conf.5, I added 'simultaneously' in ALLOW_MULTI; revised a
line in KEEPLOG, and one in LOGFILE; and flipped a couple of
inconsistent .PP/.RS pairs to .RS/.PP.

In sbopkg.8, I added a comma in a list; redid a sequence of bold/roman
in the '-e' arg list; changed 'another configuration file' to 'FILE';
and flipped the out-of-order -r/-R flags.
2010-06-02 23:05:51 +00:00
slakmagik
1978ab59a9 Correct a glitch in each man page
Started a sentence on another sentence's line in sbopkg.conf(5) and left
a separator at double lines when it should have been changed to single
in sbopkg(8).
2010-06-02 23:05:41 +00:00
slakmagik
355a3176fb Mostly font changes to both man pages
Also added several more points to HACKING which cover most of the other
changes - there are a few semantic/textual changes in here, too. The
largest changes are probably a making the 'type' of the conf values a
part of the 'template', moving and adding complete authors to both
2010-06-02 23:05:31 +00:00
slakmagik
b555c36c94 Do away with the LOGDIR variable
The revision removes LOGDIR from sbopkg, sbopkg.conf.new, and
sbopkg.conf(5) and adds the previously missing LOGFILE value to
sbopkg.conf(5). Now, with a test for a setting to absolute path, we use
the dirname of LOGFILE rather than LOGDIR.
2010-06-02 23:05:19 +00:00
slakmagik
123b3799bc Reorder options in sbopkg.conf(5)
Despite the huge diff, nothing was changed but alphabetizing the
options.
2010-06-02 23:05:09 +00:00
slakmagik
1e0fe22e0a Modified rendition of defaults in sbopkg.conf(5)
This makes all config file values be rendered the same way, with the entire
line in its own paragraph, which is set to fixed-width font (for postscript
output) and shortens and simplifies the intro line in keeping with the
whole-line consistency.
2010-06-02 23:05:01 +00:00
slakmagik
7e26d3b5d5 General textual revisions to manpages
Also corrected one point in HACKING relevant to earlier revisions and
added three more points relevant to this one. However, the vast majority
of changes in this revision don't fall under those three points or any
easily generalizable description. They're just attempts at more clarity,
consistency, accuracy, etc. Oh, and some punctuation, too.
2010-06-02 23:04:50 +00:00
slakmagik
3a57bf9bd4 Misc textual fixes/changes to the man pages
Fixed the NAME sections and man page cross references; tried to make
VARIABLES reflect whether they were used in an expanded sense or not;
changed an .IP list with non-standard bullets to a .TP with standard;
added standard NOTES section to sbopkg.conf and changed the .SH under it
to .SS and also changed the INSTRUCTIONS .SH in sbopkg(8) to an .SS of
DESCRIPTION; changed the FILES section from dashed .PP to undashed .TPs,
and changed the font to .I; changed the SEE ALSO section by removing
quotes, adding commas, reducing individual file references to the
general doc dir which was given a full path and changing its font to
.IR; and redid the tags in the OPTIONS section of sbopkg(8), making
replaceable args italic, changing the dashes, adding the missing
argument to the -f option.
2010-06-02 23:04:40 +00:00
slakmagik
bb498e4f15 Change size of tag in sbopkg.conf.5, s/.br/.IP/
Also did away with extraneous arguments to subsequent .TPs.
2010-06-02 23:04:30 +00:00
slakmagik
5a5e0a6969 Wrapped text to 72 cols; started sentences on NLs
Also added forgotten modeline to sbopkg.8
2010-06-02 23:04:20 +00:00
slakmagik
af42f83892 Replaced blank lines in manpages with .PP/.IP tags
In one instance, inserted a .br instead and, in another, replaced an
.RS/.RE with an .IP.
2010-06-02 23:04:08 +00:00
slakmagik
05fab96338 Added commented dividers to man pages
Also added a man page style guide section to HACKING and added a point
reflecting this change.
2010-06-02 23:03:56 +00:00
slakmagik
1de589ca1a Fix current version's number in the ChangeLog 2010-06-02 22:33:05 +00:00
slakmagik
f1a2d0e19b Reverted the check_gpg() part of r797; added real fix
Another 'brown paper bag' commit. This is hopefully the real fix,
deleting the line from info_item() that actually echos 'OK'.
2010-05-27 22:14:16 +00:00
slakmagik
b77ee141f2 tag and release version 0.33.1 2010-05-27 18:47:04 +00:00
slakmagik
e9605f78b6 tweaked KNOWN_ISSUES, check_gpg(), load_user_queue()
this misc revision adds a note about git to KNOWN_ISSUES, silences unwanted
output from gpg in check_gpg(), and provides a better button to a widget in
load_user_queue()
2010-05-27 18:12:22 +00:00
slakmagik
90d57940b8 Tweaked the size of the select_repository() widget
This allows all current repos + 1 to fit without scrolling - eventually, the
repo list will outgrow the displayable area, but we might as well save
scrolling while we can.
2010-05-27 15:55:42 +00:00
slakmagik
e445401c90 Documentation changes to reflect the new(est) ARCH issues.
Add the possible ARCH-discrepancy issue to KNOWN_ISSUES and change
sbopkg.conf(5) to reflect how we currently process ARCH.
2010-05-26 03:08:53 +00:00
chess.griffin
42300db6db tweak the ARCH assignment for i*86 based on changes in the SBo SlackBuild template 2010-05-26 01:50:58 +00:00
slakmagik
1045ba463e tag and release version 0.33.0 2010-05-24 22:32:33 +00:00
slakmagik
9bb1e4a140 Removed a rename that got re-renamed; tweak Changelog 2010-05-24 20:51:27 +00:00
chess.griffin
f07b0e0b3b add a --no-check-certificate fix in KNOWN_ISSUES 2010-05-23 16:36:17 +00:00
slakmagik
558e9179b8 Changed -O option to -P
Realized -P would make a better option letter.
2010-05-21 01:17:17 +00:00
slakmagik
c07caae18d Corrected a typo in the last revision (r786).
The last revision's commit message also should have ended with 'obsolete
packages' rather than 'obsolete sources'.
2010-05-20 21:27:48 +00:00
slakmagik
ff5d028f1f Renamed/revised remove_obsolete_packages() and added -O option
This revision converts remove_obsolete_packages() to
remove_uninstalled_packages() to better reflect what it currently
actually does and makes other minor revisions related to it. It also
adds a command line option (-O) to access this function. It's still
mnemonic with 'obsolete' because we're running out of option letters and
the function may yet be modified to remove obsolete sources.
2010-05-20 21:22:23 +00:00
slakmagik
0b89dd392f Modified get_source_names() to fix remove_obsolete_sources().
remove_obsolete_sources() uses data from get_source_names() to determine
whether a source is obsolete or not and was missing at least one atypical
package. Thanks to Chess for discussion and review.

Incidentally, this revision also finishes reordering the menu I started to
reorder in r771. It also tweaks the ChangeLog beyond just noting this
revision.
2010-05-20 18:35:31 +00:00
chess.griffin
a314a8d37d tweak the logic to determine ARCH; modify some evals and conditionals for ARCH (including removing an unset ARCH) in check_for_updates and info_item; thanks to slakmagik for his help and suggestions with the patch, including adding the redirects to /dev/null 2010-05-20 18:03:55 +00:00
slakmagik
29f3ec72eb Added a '?' argument to the -V flag and modified manpage and help output
This allows the user to invoke sbopkg with '-V ?' to get a list of valid
repo/branches and allows us to suggest that in the manpage and help output.
This was we don't have to keep up with manually itemizing the valid options.
Part of this change pops out a pre-existing block of code and turns it into
list_repos().
2010-05-19 16:02:51 +00:00
slakmagik
ebc21b98a0 Updated sbopkg(8) to reflect the current state of the cli options
Forgot to do this in r781.
2010-05-19 06:38:41 +00:00
slakmagik
ac4a19752a Changed the -v option to -V and made the -v option print sbopkg's version.
Thanks to Chess for discussion and review.
2010-05-18 21:02:56 +00:00
slakmagik
f2914a56b3 Added help_item() which is called from the dialog main menu.
Thanks to Chess for discussion and review.
2010-05-18 20:56:43 +00:00
chess.griffin
04fe3eb6d0 bring in several user-contributed queuefiles into /doc/queuefiles; modify README-queuefiles to note that these are just samples and to remove language regarding the queues directory on the sbopkg.org website (since such directory is now deprecated). 2010-05-18 01:34:30 +00:00
slakmagik
a3e8643dce Added another rename from the latest SBo update.
Thanks to Mauro for spotting this one.
2010-05-17 17:28:32 +00:00
slakmagik
045365fe36 Miscellaneous documentation changes; added a couple of renames 2010-05-17 02:17:25 +00:00
chess.griffin
bf1ed1fd82 slight tweaks to prior commit 2010-05-12 20:59:54 +00:00
chess.griffin
79adfa16a7 add an explanation to sbopkg.8 man page about why 'su -' is strongly encouraged instead of just 'su'; we can change this to 'now required' if we make other changes requiring 'su -' but I wanted to at least get some sort of explanation we can point to if folks have issues with 'su'. 2010-05-12 20:31:21 +00:00
chess.griffin
6d07401255 update man pages and config files in preparation for Slackware 13.1; minor grammatical edits and fixes 2010-05-12 00:43:35 +00:00
slakmagik
e12fea7b87 Fix issue 46 (and issue 44, hopefully this time for real).
"When in doubt use brute force." The timid line in r770 could result in rm
spitting errors. Thanks to Mauro for the right line. Corrected a typo while I
was at it.
2010-05-07 18:47:33 +00:00
slakmagik
1bda5605aa Fixed issue 45 (problem detecting packages with '+' in the name).
Converted an egrep in info_item() into a grep to avoid issues with '+' being a
metacharacter.

Also removed stale lines (since r631) from gen_search_package() and
string_search(). Also added a couple of credits to the ChangeLog.
2010-04-27 20:52:25 +00:00
slakmagik
904d98dd15 Modified "Build options" dialog. Misc minor fixes.
Changed the menu order of the "Build options" dialog to default to using
"Saved" options rather than "None" on the theory that, if a user has
saved options, he will more likely want to use them than not.

Removed a commented-out block and made an assignment more consistent.
Brought the add_item_to_queue() comments more in line with its code.
Changed the filename value of GSNFILE so it gets caught by cleanup().
Fixed a typo.
2010-04-20 18:32:45 +00:00
slakmagik
fe7e063134 Address issue 44 (^C download failure)
Addressed an issue where hitting ^C during the download of part of a queue
and restarting the queue could result in a download failure. Also added a
ChangeLog item for r768.
2010-04-12 01:51:57 +00:00
mauro.giachero
05fd7ee8e4 Add some more package renames.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2010-03-22 16:30:49 +00:00
chess.griffin
7ffa1520f3 address an apparent bash bug that would cause the 'obsolete sources' function to break; thanks for Mauro for coming up with the quick fix 2010-03-06 19:00:40 +00:00
chess.griffin
843617c0cb tag and release version 0.32.0 2010-03-05 22:00:38 +00:00
chess.griffin
c069e37cba fix both man page dates to date last edited 2010-03-05 21:23:14 +00:00
chess.griffin
b57d837b93 remove a few FIXME and extra comments noted by slakmagik 2010-02-26 13:49:17 +00:00
chess.griffin
99515de9bd add ability to change ARCH in the options submenu 2010-02-26 13:45:34 +00:00
mauro.giachero
59ac74efb1 Fail gracefully when there's an error computing a pkg repo version.
Sometimes sbopkg can't determine the version of a package. For example,
the google-chrome script looks at the source archive to determine it, and
such archive can very well be unavailable.
This patch makes sbopkg intercept the error condition and notify it to
the user gracefully, while at the same time falling back to trusting the
version provided in the .info file.
Thanks to alkos333 for the bug report.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2010-02-26 11:07:30 +00:00
mauro.giachero
246d57fe2e queue_dir_lister() tweaks.
Small improvements:
- reduce the number of times the queue directory is scanned
- drop a wrong 'continue' in the error path
- allow having a QUEUEDIR that is a symlink to the actual directory
- improve file cleanup.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2010-02-26 11:07:16 +00:00
slakmagik
0b14ed1cd5 Close issue 39 by changing a regex in get_source() 2010-02-21 21:12:31 +00:00
chess.griffin
10dab0fcdd modify check_for_latest() function to use new sbopkg.org/* redirects; update ChangeLog-current.txt 2010-02-04 00:11:20 +00:00
slakmagik
fd99d8e952 Address issue 33 (sbopkg sometimes picks older pkg to install; not latest)
Change a 'head' to a 'tail' so that info_item() is less likely to pick an
older package to present for installation.
2010-02-03 05:10:33 +00:00
slakmagik
9614f088c4 Close issue 40 by making directory creation prompts optional
Add config file option MKDIR_PROMPT which, when set to NO, causes sbopkg to
skip prompting the user for directory creations.
2010-02-03 04:47:47 +00:00
chess.griffin
dca1e797e0 update abiword.sqf 2010-02-01 03:13:37 +00:00
slakmagik
e75ec7e845 fix failure to remove sources in get_source_names() ( issue 34 )
This is a band-aid which explicitly enables all flash-player-plugin sources to
be removed by testing for its names. It also fixes more general issues with
some SRCNAMEs not containing the VERSION number and get_source_names()
sometimes emitting bare newlines in cases where it should emit nothing at all.

This patch also modifies a regex in remove_sources_for_app() and adds unrelated
comments to string_search().

Thanks to artourter for the report, Chess for review, and Mauro for review and
suggestions.
2010-01-29 18:38:05 +00:00
chess.griffin
3f348276aa update some copyright years; add three current-* files to tools/ directory in order to try and tweak some of the sbopkg.org code 2010-01-26 02:45:11 +00:00
mauro.giachero
def2d2542a Honor the user-chosen TAG.
Some people may want to use a custom TAG. sbopkg should use that instead
of the default one.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2010-01-18 13:05:40 +00:00
chess.griffin
c5cbc213a3 add a few renames; update ChangeLog-current.txt 2010-01-14 02:55:36 +00:00
chess.griffin
9980771175 add support for UNSUPPORTED/UNTESTED packages in the repo by offering the user the chance to continue anyway or skip; thanks to slakmagik and Mauro for comments during review 2009-12-09 04:27:13 +00:00
chess.griffin
c9e329a6f8 add Miro=miro to 50-default renames file 2009-11-23 04:04:48 +00:00
chess.griffin
e6b5182278 tag and release 0.31.0 2009-11-01 03:23:16 +00:00
chess.griffin
028971b50a commit a patch from Mauro that add an unset before an eval otherwise BUILD gets stuck once and not reset set which can show incorrect potential updates 2009-10-30 21:12:16 +00:00
chess.griffin
b6cfb9f55b commit a patch from Mauro that changes a variable name (BUILD) that was used to track the build package number as well as the set of packages were were building/installing from CLI; this latter instance now uses a different variable 2009-10-30 21:10:43 +00:00
slakmagik
bb0f5047e7 small tweak to coerce bash into accepting any octal-looking numbers we might
get in updates_compare_versions() as decimal - thanks to artourter for the
report (issue 31)
2009-10-21 02:37:11 +00:00
mauro.giachero
d27fd4d394 Check for updates: show and queue all version changes.
sbopkg sometimes misinterprets version numbers, and some upgrade can
be classified as a downgrade which, by default, is not shown.
For example, 1.0.1 looks older than 1.0-rc2 to it.
Always show and queue apparent downgrades and "unclassified" version
changes as disabled queue items. This way users can fix sbopkg errors
(since there's no way sbopkg can always correctly guess correctly).

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-10-20 13:14:48 +00:00
mauro.giachero
0d1720bc33 Check for updates: don't duplicate queue items.
Adding the updated packages to the build queue could put in the
queue the same package more than once (if it was already present
in there).
Use parse_queue() instead of the bare append to avoid this.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-10-20 13:14:40 +00:00
mauro.giachero
446bf5e830 Fix executable man page (from r731)
That's what I get for using a vfat usb disk and not taking care of
file permissions.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-10-20 13:13:19 +00:00
slakmagik
5516dda60d minor cleanup - adds and modifies comments and whitespace, modifies an
assignment to PKG in get_source(); modifies process_queue() by checking return
values directly rather than via $? in a couple of places, changes an
assignment to BUILD, and removes an unused COUNTER, and parenthesizes a string
index in the '-b' flag code path
2009-10-17 08:19:21 +00:00
slakmagik
fd2257eb2e this is a band-aid which modifies get_source() to force links and explicitly
fall through a case; more directly, it sets a NO_DL_LOOP flag if sbopkg has
done a download so that it doesn't download in an infinite loop. It moves the
download command into a conditional which can break the loop. It also modifies
check_source() to unset the flag if sbopkg has done a successful download, so
it can do the next one. Finally, it modifies get_source_names() to only go
into the guessing code if we have done a download, don't have a source file,
and only need to guess on one source name - thanks to godling for noticing a
failure in downloading dictd and the infinite loop; thanks to Chess and Mauro
for review and suggestions.
2009-10-17 08:12:28 +00:00
chess.griffin
3108417eb5 add tint=tint2 to 50-default renames file 2009-10-12 16:17:13 +00:00
mauro.giachero
18d3f37956 Work around build issues with custom LC_COLLATE values.
Some users use a customized LC_COLLATE value, which is known to
be a source of script breakage.
This patch makes sure that LC_COLLATE is set to C (the default)
when building.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-10-12 13:30:04 +00:00
mauro.giachero
cad2731d34 Rework the options selection menu to avoid truncating the options.
Without this patch, the list of build options was placed on the
left side of a menu dialog entry. Since dialog entries cannot span
to multiple lines, very long option lists were (visually) truncated.
Rework the dialog to show the options in the menu text field, so
there's much more room for them.
Reported by Erik Hanson.

While at it, also make sure that there's no stale options.build
file lying around (which is a minor bugfix).

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-10-12 13:29:55 +00:00
mauro.giachero
226fa1d95e Add dialog and cli options to review all READMEs for queued packages.
This is meant to be useful for doing "final checks" on the active queue
before starting the build process.
Thanks to slakmagik for reviewing.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-10-12 13:29:47 +00:00
mauro.giachero
bfc67af5e7 Declare ALLOW_MULTI among global variables.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-10-12 13:29:37 +00:00
chess.griffin
9c775aa684 fix cosmetic bug where ARCH and BUILD were not displaying correctly in the updates list; thanks to Mauro and slakmagik for the actual working code for this fix 2009-10-08 14:45:27 +00:00
slakmagik
177e710d17 Add a KNOWN_ISSUES file and modify sbopkg.SlackBuild to take it into account. 2009-09-27 00:01:28 +00:00
mauro.giachero
2db000bf4e Shorten the ARCH indication in backtitles.
This way the backtitle fits in a standard 80-columns terminal.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-09-25 09:17:37 +00:00
mauro.giachero
ec602a72bb Be more strict when validating YES/NO configuration variables.
This way users won't be surprised when misspelling "no" as "np" and
getting a "yes" behavior...

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-09-25 09:17:31 +00:00
mauro.giachero
0cf9aea14a Allow multiple instances of sbopkg to run simultaneously.
This patch makes it possible to run multiple sbopkg instances
simultaneously in different $SBOPKGTMP prefixes.
There are some known (and possibly unknown) caveats the user
should be aware before enabling this option -- I documented the
ones I could think of.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-09-25 09:17:23 +00:00
slakmagik
51b52b748d Fix an issue with an incompatibility between bash 3.1, 3.2, 4.0 which
caused quoted strings in the RHS of the =~ operator in [[ commands to be
interpreted as literal strings, thus causing parts of sbopkg to fail. Update
HACKING to address this. Thanks to SiegeX and others for the reports and
suggestions. Thanks to Mauro and Chess for review and suggestions.
2009-09-18 09:40:49 +00:00
mauro.giachero
9405fc1865 Fix issue with r713 showing a broken backtitle when ARCH isn't set.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-09-15 14:45:13 +00:00
slakmagik
6c491521a1 correct part of the last revision which broke sbopkg's proper handling
of the situation where no SBo packages are installed
2009-09-11 05:03:37 +00:00
slakmagik
e346c03c16 add the ability to uninstall SBo packages from the dialog interface that
lists installed packages; thanks to pokipoki08 for the suggestion.  Thanks to
Chess and Mauro for code review and suggestions.
2009-09-11 04:46:46 +00:00
chess.griffin
df07ea151f fix an issue with the build options dialog menu where selecting 'None' would not work; thanks to happyslacker for the bug report. 2009-09-10 17:52:52 +00:00
mauro.giachero
d3a02809ea Fix wrong regex in uncheck_installed().
The old regex turned ON into ONOFF. Dialog apparently treats that as
an OFF, so overall the code appeared to work fine. Neverthess, this is
worth a fix.
Spotted by slakmagik.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-09-09 17:33:29 +00:00
chess.griffin
9641686690 undo accidental commit to src/usr/sbin/sbopkg 2009-09-09 13:42:20 +00:00
chess.griffin
b132e73ccd add :force to sbopkg.conf WGETFLAGS after --progress=bar to correctly display the progress bar; thanks to happyslacker for the reminder. 2009-09-09 13:38:59 +00:00
chess.griffin
8dbba9f417 add info about ARCH to sbopkg.conf(5) man page 2009-09-07 02:36:09 +00:00
chess.griffin
9c16496ef3 fix typo in backtitle 2009-09-06 12:16:02 +00:00
chess.griffin
61630757af add ARCH information to dialog backtitles; update ChangeLog-current 2009-09-06 04:11:27 +00:00
chess.griffin
e85ef69e1b fix tinyerp-server in 50-default renames file 2009-09-01 14:20:30 +00:00
chess.griffin
d3e4f50857 tag and release 0.30.1 2009-08-28 17:46:03 +00:00
mauro.giachero
66e307e9aa Fix the $SBOPKGTMP sanity check.
'find' prints the directory name as the first result, and if $SBOPKGTMP
is not named after sbopkg it makes the sanity check fail.
Fix this by making sure that 'find' doesn't ever return the directory
name.
Thanks to Ken Roberts for raising the issue.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-08-28 16:57:21 +00:00
mauro.giachero
63a173476d Update the renames file.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-08-28 16:57:13 +00:00
mauro.giachero
5e36b3195c Fix the updates check for Slackware 13.0
In the updates check we split the package name expression (on the
makepkg line) counting dashes. The 13.0 scripts now have, instead of
'tgz', the expression ${PKGTYPE:-tgz} at the end. This makes us pick
up the ARCH field instead.
Fix this by suppressing any ':-' operation found. This should be
reasonably safe (no 12.2 script has such expression there).
While at it, replace the old cut/rev dance with a single sed invocation.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-08-28 16:57:04 +00:00
chess.griffin
805c3cf422 tag and release version 0.30.0 2009-08-24 18:15:20 +00:00
chess.griffin
d27d4e3461 modify size of view_queue() to avoid problems with 80x24 terminals 2009-08-23 16:07:45 +00:00
chess.griffin
2fa48d0586 tweak language in dialog when search term is not found; thanks to idknow for the bug report 2009-08-13 15:11:31 +00:00
chess.griffin
362d0cbf81 update French sbopkg(8) man page; thanks to Marie-Claude Collilieux 2009-08-12 18:14:29 +00:00
chess.griffin
f7c66c3b52 update French man pages; thanks to Marie-Claude Collilieux 2009-08-12 02:46:17 +00:00
chess.griffin
f859290b84 modify multimedia.sqf based on feedback by Pierre Cazenave; update date in sbopkg(8) man page 2009-08-10 23:19:09 +00:00
chess.griffin
2d401c261d add ability to invert all selected or deselected items in the view cache and obsolete sources and packages dialogs; thanks to dive for the suggestion 2009-08-06 13:08:14 +00:00
mauro.giachero
6c04fea0be Add the new -k option to skip building already installed packages.
This is the CLI variant of the previous commit.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-08-05 21:27:33 +00:00
mauro.giachero
e7803ae655 Add a dialog option to uncheck installed packages.
This makes it handier to skip the build for already installed packages.
Note that "installed packages" here includes different versions, since
only the package name is checked.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-08-05 21:27:19 +00:00
mauro.giachero
4473a090ad Fix GPG checking message.
The OK wasn't sent to the terminal, so the thing looked quite screwed up
(all the "Checking GPG of" instances were on a single line).

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-08-05 21:27:09 +00:00
mauro.giachero
1abbe2bd3c Improve the spacing for a couple of dialogs.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-08-05 21:26:58 +00:00
mauro.giachero
2192b8cade Show currently installed package version in queue dialogs.
This patch shows the currently installed version of each queued package
in queue dialogs, or "New" if the package isn't installed.
The main reason to do something like this is to be quickly able to disable
the build of already-installed packages from a loaded queue. We're not
simply showing "Installed" here just to avoid inducing the user into
thinking that the queued package is exactly the same installed, while it
possibly isn't due to version updates.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-08-05 21:26:35 +00:00
chess.griffin
9f9ec7a6a9 change the dialog refresh workaround function so it simply sets TERM=xterm-color, which seems to fix most issues; any other issues will go in a yet to be created doc KNOWN_ISSUES; thanks to Mauro for this fix 2009-08-02 17:38:25 +00:00
mauro.giachero
39ce2083f4 Properly validate repository descriptors.
Repository descriptors (*.repo files) weren't properly validated on
load. This could lead to unexpected problems whenever a wrong descriptor
is found.
This patch replaces the original 2-lines loader with a proper parsing
function which also performs some sanity checks.

While at it, stop using the magic number '7' as the number of fields in
a repository record -- use a variable instead.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-07-23 16:40:05 +00:00
slakmagik
a5b7b85b4d Tiny change to save_user_queue() to prevent the user losing their queue when
they clear the file name in the save dialog and hit okay - before it would
behave as a 'cancel' and now it presents the dialog again. Thanks to Pierre
Cazenave for the suggestion.
2009-07-23 00:15:45 +00:00
mauro.giachero
c4310a4c6f Cleanup and fix process_queue() post-build code.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-07-20 13:56:29 +00:00
chess.griffin
af31572a1c tweak the precheck and summary logs a bit to make them more compact and cleaner 2009-07-17 13:15:24 +00:00
chess.griffin
f8f0de5075 fix saving repository change to /root/.sbopkg.conf; thanks to samac for the bug report 2009-07-15 13:44:37 +00:00
chess.griffin
6c7a6082c9 back out additions to renames.d/50-default for now 2009-07-14 14:59:41 +00:00
chess.griffin
262d8033cb modify/add to the sample queuefiles 2009-07-14 00:20:00 +00:00
chess.griffin
746358a451 show package name when error occurs during build; move gpg checks a bit so we can still edit info and slackbuild files when using the local repository 2009-07-13 16:54:09 +00:00
mauro.giachero
ba834c8b3e Fix REPOSITORIES loop.
This should have been done in r669, but we forgot.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-07-13 16:14:42 +00:00
mauro.giachero
4f9e3b24e6 Fix CLEANUP/KEEPLOG not working when set to NO.
Before this patch, they were conditionally unset before
the code checking for the presence of all the required
configuration variables.
While at it, clean up the code a little.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-07-13 15:38:52 +00:00
mauro.giachero
dff0d70720 Fix build error management.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-07-13 15:38:42 +00:00
mauro.giachero
64e16fefab Fix 'rm' error on download failure.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-07-13 15:38:32 +00:00
chess.griffin
9a30b944be modify the queue editing functions by creating two new queue menu items, 'sort' and 'reverse' for a better user interface; thanks to Pierre Cazenave for the suggestion. 2009-07-11 03:14:05 +00:00
mauro.giachero
09c5ab6707 Add function removing obsolete (not installed) packages from $OUTPUT.
This patch add a function to remove from $OUTPUT packages
that are not installed. This is useful to remove from
$OUTPUT packages that are made obsolete by version updates,
or that are unwanted for whatever reason.
Addresses issue #20. Thanks to alkos333 for suggesting this
feature.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-07-10 07:44:11 +00:00
mauro.giachero
be45ca8aec Make remove_sources() generic and name it remove_files().
This is a preparation patch that should have minimal
changes in functionality (some on-screen messages change,
though). Its purpose is to enable the use of the
aforementioned function to remove more than source files.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-07-10 07:44:00 +00:00
mauro.giachero
104ad3804f Add sbopkg.conf option to delete build residuals.
This patch adds a sbopkg.conf option that, when enabled,
tells sbopkg to automatically delete the sources and all
the other files generated during the SlackBuild execution
right after running it.
Addresses issue #21. Thanks to Marco Bonetti and Gregory
Tourte for the report and the nice discussion.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-07-09 14:05:44 +00:00
mauro.giachero
cc6ddd5457 Cleanup build error management.
This patch moves the get_source() error management down to
build_package(), which is its only caller. This leads to
some code deletion (mostly related to asking the user what
to do) and gives a "retry" alternative also to source
download problems.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-07-09 14:05:28 +00:00
mauro.giachero
361816f853 Add option to retry a failed build.
This patch allows the user to retry a failed build. This
can be useful when the user mistakenly forgot to set up
some prerequisite (like creating a specific user or group),
when the build failed due to filling the build area (not
so unlikely when building large queues) and probably in
other cases too.
Addresses issue #24. Thanks to Zordrak for suggesting this
feature.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-07-09 14:05:17 +00:00
chess.griffin
6104d81ef9 forgot to remove commented out code 2009-07-08 16:23:00 +00:00
chess.griffin
5620d56717 fix gpg checks so they are only used for repos with a new GPG field enabled; update repos.d/* and README-repos.d accordingly 2009-07-08 16:22:00 +00:00
chess.griffin
4c40a35f43 fix ChangeLog entry; add two items to renames.d/50-default 2009-07-08 02:49:38 +00:00
mauro.giachero
1c3910e57e Add support for multiple source files and to x86_64.
This patch adds support for the new SBo 13.0 features, namely
x86_64 support and the ability to specify more than one source
tarball in the .info file.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-07-07 13:03:35 +00:00
chess.griffin
08e6246bf1 make SBo 13.0 the default in sbopkg.conf.new; add 13.0 repo to 40-sbo.repo; remove duplicate entry in ChangeLog-current.txt; replace a file name usage with STARTQUEUE in sbopkg 2009-07-02 19:00:09 +00:00
chess.griffin
3dcf17941a tweak man page once more 2009-06-25 15:16:33 +00:00
chess.griffin
fce7f9c84a tweak man page 2009-06-25 15:15:16 +00:00
chess.griffin
3115d45e9b tweak sbopkg.conf man page to bring it in line with sbopkg(8) 2009-06-25 15:03:29 +00:00