Commit Graph

925 Commits

Author SHA1 Message Date
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
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
81e337a664 Change the default checkout location to something more likely, though it
should still be customized by the user; add UID check; fix bug with
non-existent repo directories (thanks to Mauro for the even less buggy fix);
fix bug with a subshell that prevented sspm from exiting on one error - it was
meant to be a group command; convert the su block into a normal block; add a
couple more exclusions to the tar command to skip backup and tags files - and
throw a note into the ChangeLog so users don't get surprised by the repo
moving or having its ownership changed
2009-09-27 00:17:20 +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