Commit graph

890 commits

Author SHA1 Message Date
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
slakmagik
9e13a8ae0a Tweak ChangeLog-current.txt
Add a specific mention of the new MKDIR_PROMPT in the relevant item and
remove a non-user-visible item
2010-02-27 06:58:25 +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
f38349a7c5 fix current-download 2010-02-03 04:04:28 +00:00
chess.griffin
3379f997f0 add current-download file to tools/ directory 2010-02-03 03:50:11 +00:00
chess.griffin
5e39bc23d9 add html versions of both man pages and also output of 'sbopkg -h' to tools/ directory for sbopkg.org website usage 2010-02-01 03:26:31 +00:00
chess.griffin
d5a6a216e1 update ChangeLog-current.txt 2010-02-01 03:17:21 +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
slakmagik
2ffee8a4a8 Add the description of the r735 changes to ChangeLog-current.txt, which I
forgot to do at r735.
2009-10-20 20:34:18 +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