Commit Graph

764 Commits

Author SHA1 Message Date
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
chess.griffin
c7160dc481 forgot to add the fix for the neonflux bug report :/ 2009-06-25 14:48:32 +00:00
chess.griffin
9caca085f2 remove ARCH from sbopkg.conf since we now test for that internally; modify sbopkg.conf man page accordingly; update ChangeLog-current; add in fix for bug reported by neonflux that was previously committed to -stable 2009-06-25 14:41:36 +00:00
mauro.giachero
13493c7c7c Add a 'diff' entry to the customization menu.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-06-25 08:03:47 +00:00
mauro.giachero
9f69b21d0d Add a <Cancel> button to the "Install Package(s)" dialog.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-06-25 08:03:29 +00:00
chess.griffin
4fee29faf3 add -f to two rm lines 2009-06-24 01:35:28 +00:00
chess.griffin
5f5a7c498a make the 'check for updates' and 'check for obsolete sources' progressbars display consistent text. 2009-06-23 13:52:22 +00:00
chess.griffin
9aa419ab02 minor tweak to multimedia.sqf 2009-06-23 02:30:26 +00:00
chess.griffin
b358f412ae Mention sbopkg.org/queues in the README-queuefiles 2009-06-23 02:23:17 +00:00
chess.griffin
5fef6e77aa add several sample queuefiles in new doc/queuefiles directory; modify man pages and README-queuefiles 2009-06-23 02:11:43 +00:00
chess.griffin
e88da2ada0 fixes to sbopkg and queuefile build options; update some of the documentation; update the ChangeLog-current.txt 2009-06-23 01:42:59 +00:00
chess.griffin
f634ccba51 implement ability to pass build options in a queuefile by separating the app name and the options with a pipe, e.g. 'app | FOO=yes BAR=no'; also fix a few issues with picking up the buildoptions when the slackbuild is run; a fix a few other little niggles 2009-06-22 15:25:33 +00:00
chess.griffin
6205d2ab27 avoid getting a 'save queue' dialog when exiting sbopkg after loading multiple queues if there has been no change to the queues themselves 2009-06-17 12:50:26 +00:00
chess.griffin
e6ca88d7d5 make error message displayed when checking for updates with no packages installed consistent with other similar error messages 2009-06-17 00:27:54 +00:00
chess.griffin
98a2e324af fix dialog glitch when trying to add all packages to queue with no packages installed 2009-06-17 00:22:08 +00:00
slakmagik
8b87240383 Modify do_install() in stable and trunk to correctly invoke upgradepkg to avoid
a fairly rare but serious case of removing the wrong package; thanks to NaCl
for the bug report.
2009-06-14 17:58:45 +00:00
mauro.giachero
eb1cea4375 Search/browse: stay in the menu after queuing the item.
After adding an item to the queue from the search/browse
result list, sbopkg should show the list to the user again
so that he can choose another package. This is the 0.27.x
behavior, but got broken sometime.
This patch restores the correct behavior.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-06-10 07:39:36 +00:00
mauro.giachero
0d7e600ae9 Implement duplicate queue list deletion.
This patch makes sure that the loaded queue list gets
delete before beginning the loading operations.
Without this patch, the sequence:
- load queue 'foo'
- clear the queue
- load queue 'foo' again
results in an empty queue, since on the second load 'foo'
gets skipped since it's listed as already loaded.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-06-10 07:39:24 +00:00
chess.griffin
acc41bec1c when using -b or -i from cli, check if .sqf extension is used and if so, go directly to parse_queue 2009-06-10 03:14:41 +00:00
chess.griffin
3d4cbed411 replace a break that got accidentally removed in r629 2009-06-10 02:50:30 +00:00
chess.griffin
d8190e6c54 improve the code that prevents infinite loop on recursive queues; this probably still need to be tweaked a bit as far as removing DUPEQUEUE, but this is working thus far; thanks to Mauro for review and comments 2009-06-09 00:52:15 +00:00
chess.griffin
846ace5e0f allow 'ESC' to exit edit_build_queue menu; thanks to Nille for the bug report 2009-06-07 03:40:50 +00:00
chess.griffin
8b3544db4d prevent a queue from recursively loading itself 2009-06-07 03:22:00 +00:00
chess.griffin
967a185c45 change .sboq extension to .sqf (sbopkg queue file); I never liked the .sboq even though I came up with it. 2009-06-07 02:30:26 +00:00
chess.griffin
6ca3e9df3a Modify format so we just use per line and not to make some code simpler and sbopkg itself a little bit faster. Thanks to Mauro for the suggestion and review. Also update ChangeLog-current.txt re: same 2009-06-06 19:38:58 +00:00
chess.griffin
3d2a434e1c include ability to have recursive queues in a queuefile by appending a '@' in front of a queuename; thank to Mauro for reviewing and providing helpful feedback during testing; this still needs some testing but we wanted to get it in so we could keep working on it. 2009-06-06 17:42:35 +00:00
chess.griffin
6c57ecf70b modify GPG checks by always checking and extracting tarball when entering the 'edit slackbuild/info menu'; also move gpg check and add extraction to the precheck before building 2009-06-04 03:46:23 +00:00
chess.griffin
437db211f1 tweak the output log a little bit 2009-06-03 14:05:14 +00:00
slakmagik
d6f471008b fix a couple of errors in the comment to split_pkg_name() 2009-05-30 02:54:00 +00:00
slakmagik
239b2b1489 add split_pkg_name() to function-alize the acquisition of package name
components, using it in check_for_updates() and add_all_to_queue() and
changing the declared and used variables to suit - also
reformatting/reindenting a few lines, correcting a couple of typos, and fixing
the variable declarations of info_item() along the way - thanks to Mauro and
Chess for review and suggestions.
2009-05-30 02:41:52 +00:00
chess.griffin
57fefa0da2 add several new functions for checking the SBo GPG-signed tarballs both during the build/install process as well as manually in the info_item menu; tweak the layout of the build logs just a little bit; other misc. little fixes when dealing with exiting the queue. 2009-05-29 16:35:25 +00:00
chess.griffin
26fc3f6ebe add a regex fix to remove some double quotes; also split the regex's out into separate lines for easier reading; thanks to Mauro and slakmagik. 2009-05-28 20:54:34 +00:00
chess.griffin
c2c7cb1442 I keep forgetting to commit this little fix 2009-05-28 19:45:48 +00:00
mauro.giachero
8b681ae0b3 remove_obsolete_sources(): make the progressbar interruptible.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-05-28 10:19:13 +00:00
mauro.giachero
cfdf6ac7be add_*_to_queue(): general improvements.
This patch implements the renames checking for
add_item_to_queue(), thus enabling the use of obsolete
names in legacy queues.
That function can fail if the used name cannot be found.
For that reason, check its return status where appropriate
to properly report such errors to the user.
While at it, improve the add_all_to_queue() interface.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-05-28 10:18:59 +00:00
chess.griffin
c9b022f774 change 'kill' to 'kill -9' PID when changing repositories; this seems to fix a dialog breakage I was experiencing when switching back and forth between SBo and Slamd64 repos 2009-05-27 01:01:27 +00:00
chess.griffin
f975490582 add a new 'add_all_to_queue function in the queue menu that allows a user to dump all installed packages into the queue; also delete two leftover references to BACKUPQUEUE_LOCK which were part of a function removed wtih r590. 2009-05-26 14:12:01 +00:00
mauro.giachero
74de95eee3 Avoid an error spitting exiting sbopkg with empty queue.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-05-26 12:23:48 +00:00
mauro.giachero
c8b479507a Scattered minor cleanups.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-05-26 09:05:49 +00:00
mauro.giachero
2b553679e8 Tweak info_item()
Cleanup and tweak info_item():
- the code to detect already available packages in $OUTPUT
  is now more robust and readable;
- the code to determine already installed versions of the
  package is now more robust and readable;
- the "Installed:" line now also lists non-SBo packages
  (this is useful for Slackware-current users, as well as
  for people using non-SBo third-party packages)
- the window title now also shows the package tag, to
  remove some ambiguity (e.g. as of now, Slackware-current
  has a libzip package with the same "signature" as the
  SBo one, and from the info_item() dialog it looks like
  they are the same package when in fact they are not).

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-05-26 09:05:38 +00:00
chess.griffin
d21b989c27 tweak all repos.d/* and renames.d/* files to make comments consistent. 2009-05-26 03:47:06 +00:00
chess.griffin
0b0335e657 edit renames.d and repos.d files and set Id propset on all 2009-05-26 03:35:12 +00:00
slakmagik
f3b635a3aa comment stripcom() and make the variable name consistent with others 2009-05-25 17:03:37 +00:00
chess.griffin
c5af8e5f24 remove two stale commented out lines 2009-05-25 16:17:35 +00:00
chess.griffin
f80edb7aef change KEEPLOG test to fit other similar tests 2009-05-25 04:36:57 +00:00
chess.griffin
ec2663e653 more sbopkg.conf.5 tweaks 2009-05-25 03:21:25 +00:00
slakmagik
fc84284c3d add stripcom() and use it in save_user_queue() to make sure we're only
comparing relevant things when deciding whether to save the queue on exit
2009-05-24 20:57:04 +00:00
chess.griffin
09664bf11d fix typo in sbopkg.conf.new and tweak it a bit 2009-05-24 20:43:57 +00:00
chess.griffin
0f3a1941e3 add ARCH explanation to sbopkg.conf.new 2009-05-24 19:30:08 +00:00
slakmagik
7a67084d2b fix issue with build_package()'s return code getting swallowed up in a pipe 2009-05-23 17:57:19 +00:00
chess.griffin
749d776734 add exported ARCH to sbopkg.conf.new 2009-05-23 04:56:20 +00:00
chess.griffin
dfa5bd29ce add propset keywords to README-queuefiles and README-repos.d 2009-05-23 04:49:46 +00:00
chess.griffin
65feae6ed3 add README-queuefiles to /doc directory. 2009-05-23 04:44:05 +00:00
slakmagik
8fdf2e1361 fix vim modeline 2009-05-22 21:21:52 +00:00
chess.griffin
4a88fc9f65 add ability to build/install more than one queuefile from cli, e.g. $ sbopkg -b 'queue1 queue2' 2009-05-22 20:16:30 +00:00
chess.griffin
0dd4a6a668 modify queuefile format so now queuefiles are simply one 'APP' per line; deselected apps can be be indicated by prepending a '-' in front of the APP name, such as '-APP'; this should make using and sharing queuefiles easier and more intuitive; also update ChangeLog-current.txt 2009-05-22 14:33:29 +00:00
mauro.giachero
cf5963a290 search_package(): do not leak $PKG.
Before this patch, search_package leaked $PKG and in some
places the code actually made use of that. Since $PKG is the
unmodified first parameters of the function, there's really
no need to use the leaked value -- just use whatever was
put as first argument to the call.
As a side effect, probably some cosmetic bug got fixed,
since $PKG was also used in odd places.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-05-21 16:35:11 +00:00
mauro.giachero
d789a128e8 Invert can_skip_line() return value logic.
Code reading suggests that if "can_skip_line $FOO" is true,
the line can be skipped. Unfortunately, the code acts
backwards (if the function returns 0, the line _can't_ be
skipped).
Invert the function return logic so to make the code less
confusing.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-05-21 16:34:59 +00:00
mauro.giachero
b43772cb7a Remove load_backup_queue().
This function is unused since a long time, and likely won't
be used anytime soon, so delete it.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-05-21 16:34:46 +00:00
mauro.giachero
77534078e3 Do not use the ARCH variable.
ARCH is a special name for SlackBuilds, and it will get even
more important now that Slackware is going to support x86_64.
This patch makes sure sbopkg doesn't use it internally any
more.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-05-21 16:34:34 +00:00
mauro.giachero
cf78790cc0 git support: add ChangeLog.txt.
Since git repositories track the whole history of a project,
there's no point in maintaining a change log for them. Sbopkg
expects one nevertheless, since it's historically rsync
oriented.
This patch adds the little code needed to automatically
generate a meaningful ChangeLog.txt from the project history.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-05-21 16:34:21 +00:00
mauro.giachero
30ad5a995d Fix '-s' command line switch.
The '-s' switch got broken, mainly because it used "leaking"
variables. Give it a proper interface, and use that.
Also, properly check for search failures.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-05-21 16:34:09 +00:00
mauro.giachero
9ee548f2c3 Refactor get_source() a bit.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-05-21 08:51:04 +00:00
mauro.giachero
1d47dfab92 Rework source checking.
David Spencer reported on the ML that the current sbopkg
behavior of checking the MD5 only just after the download
breaks some (bad) applications, like Google Earth, which
don't change the source file name on version upgrades.

This patch puts an additional check for existing sources,
so to workaround this issue (at the expense of extra MD5
checks for all other good applications). Moreover, add an
option to retry the download, which comes handy with the
aforementioned bad applications since otherwise the user had
to start the build twice (the first time he sees a failed
MD5 check and has the option to delete the downloaded file,
and the second time the source gets downloaded again).

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-05-21 08:08:01 +00:00
mauro.giachero
50c293ff1e Fix queue processing.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-05-21 08:07:51 +00:00
mauro.giachero
da958c527d Improve file cleanup for search-related functions.
This patch revisits some cleanup path, and makes sure that
the temporary files are deleted where appropriate.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-05-21 08:07:40 +00:00
mauro.giachero
d8a74980be Cleanup gen_search_package().
This patch replaces some wrong 'continue' statements with
'return 0' (which is functionally equivalent on all call
sites), merging some of them at the end of the function.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-05-21 08:07:30 +00:00
mauro.giachero
a24462f13f Use return values to implement the jump back to the main menu.
sbopkg 'touch'es a file (sbopkg_return_main_menu) to track
that the user asked to jump back to the main menu from a
"deep" menu level (such as info_item).
This patch converts it to the usage of function return values,
which makes the code smaller and easier to read.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-05-21 08:07:19 +00:00
mauro.giachero
31ce00b3d1 Sanity check $SBOPKGTMP.
Since we do many file operations in $SBOPKGTMP, including
some 'rm -rf', check its content on startup to make sure no
user files are mistakenly in there.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-05-21 08:07:09 +00:00
mauro.giachero
bd057d45e4 Cleanup {edit,delete,pick}_local_{info,SlackBuild}() and more.
This patch removes some code duplication and modifies some
detail about the EDITOR, PAGER and HAS_NCURSES variables.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-05-21 08:06:57 +00:00
mauro.giachero
b4cef20b18 Add the museek-plus->museek+ rename.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-05-21 08:06:46 +00:00
chess.griffin
5da74910d6 enforce '.sboq.' extension to queuefiles; also, if argument passed at cli is the name of a queuefile and a package, ask user which one he wants to use 2009-05-20 12:51:16 +00:00
chess.griffin
c39e7e2b1b fix typo to man page 2009-05-18 19:40:28 +00:00
chess.griffin
cb8eb52669 update both man pages; these man pages might need more tweaking but there were a couple of things I had been wanting to fix/update in the meantime 2009-05-18 19:38:20 +00:00
chess.griffin
1fcce2efe8 update some of the items in /docs 2009-05-18 19:32:00 +00:00
mauro.giachero
6a186e9d8b New repository layout implementation.
This patch introduces a new repos.d directory containing
all the definitions of repository branches. This way the
supported repositories can be extended without modifying
the default configuration files, which causes problems on
version updates.
Thanks to Chess Griffin for his efforts in planning this
feature and reviewing the implementation.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-05-18 09:03:18 +00:00
chess.griffin
a125d260fc undo last commit; man pages were accidentally update 2009-05-16 05:00:01 +00:00
chess.griffin
30da6c2a1f update trunk ChangeLog.txt 2009-05-16 04:51:00 +00:00
chess.griffin
0a6d282289 tweak the output of the summary log 2009-05-16 04:26:32 +00:00
chess.griffin
2ced9364a4 do not show files that end in '~' in queue dir lister; when importing lines from a user queue, check and skip blank lines and comment lines; fix view_queue call when using 'Process' button in queue menu 2009-05-14 20:36:50 +00:00
chess.griffin
fe357d64e4 more process_queue cleanups 2009-05-14 19:47:23 +00:00
chess.griffin
6bd48b9f8a modify the log a bit; add some counters; move one more bit (the echos at end of build_package) to the caller; change the build/install dialog to a 'yes/no' dialog per Mauro's suggestion 2009-05-14 16:27:54 +00:00
chess.griffin
07c263c203 rework the whole process_queue and related functions; this patch attempts to properly handle certain items by the caller instead of in the called function; it also does away with the INSTALLPKGS and BUILDPKGS toggles; the logging is cleaned up and improved; and various other FIXMEs and tweaks are made along the way. 2009-05-14 14:06:44 +00:00
chess.griffin
0ff2ee1f91 try and fix svn revision propset on sbopkg; take 2 2009-05-12 19:28:15 +00:00
chess.griffin
ef23192fd2 try and fix svn revision propset on sbopkg 2009-05-12 19:27:44 +00:00
chess.griffin
516c681183 add support for new *.txz, *.tbz, and *.tlz Slackware package extensions. 2009-05-12 14:03:29 +00:00
mauro.giachero
99b16afbeb Fix a couple of "Build and Install" bugs.
Spotted and fixed by Chess Griffin.
2009-05-12 07:37:32 +00:00
chess.griffin
f6e81fa444 apply SVN propset to 50-default 2009-05-08 21:51:40 +00:00
mauro.giachero
3078f984fa Implement renames tracking using a configuration directory.
Modify the renames tracking so that, instead of a single
file, all the files of a renames.d directory are used (just
like udev and modprobe do).
This has several advantages:
- no more need to "mv sbopkg-renames.new sbopkg-renames"
- it's now easier to add custom renames that automatically
  "survive" version upgrades
and, last but not least, this is believed to be the correct
way to handle these things.

Many thanks are due to Robby Workman for proposing this
change and to Chess Griffin for implementing it.
2009-05-08 08:39:37 +00:00
mauro.giachero
91db815094 Fix package building by making two more variables global.
The giant cleanup broke package building by marking "too
many" variables as local. These two are actually used
elsewhere, so just make them global.

Thanks to Chess Griffin for this fix.
2009-05-07 10:14:30 +00:00
mauro.giachero
3ddf3a7067 Fix per-user SLACKVER setting.
If the user ever created a personal sbopkg.conf file not
containing the SLACKVER=... line, the old code would not
add it.
This patch fixes the code by removing the assignment if it
exists, and then unconditionally adding the new one at the
end.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-05-07 10:14:19 +00:00
mauro.giachero
449e2371a9 Fix local repo test.
This change got lost when resolving some merge conflict :-/.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-05-07 10:14:08 +00:00
mauro.giachero
3d98703b9d Do not unset SBOPKG_CONF at startup.
SBOPKG_CONF shouldn't be unset at startup, because we want
to be able to override the default config file name with it.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-05-07 10:13:54 +00:00
mauro.giachero
7fabdd8f97 'Nice' the build process.
Give a lower priority to the build process, so that sbopkg
becomes less a resource hog when left working in background.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-05-07 10:13:41 +00:00
chess.griffin
ea887535c4 undo last change; that was not the solution to why renames is not working 2009-05-06 18:26:10 +00:00
chess.griffin
ca03f902b0 minor fix to get_old_name call 2009-05-06 18:16:09 +00:00
mauro.giachero
e31680566e Implement configurable repository management and git support.
This patch makes the repository list a configurable item
inside sbopkg.conf.
With this new way to specify repositories, there's the
possibility of naming the tool able to sync the local copy
of the remote repository. Such feature has been then used to
implement the support of git-based repositories, much
common in the Slamd64 land.

Please note that the purpose of this patch is to provide a
more flexible fetching system. The additional repositories
must be careful in being conform to the SlackBuilds.org
structure, or sbopkg will fail with them.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-05-06 13:56:42 +00:00
chess.griffin
00c0bfe937 fix two minor issues with commits r533 and r539 2009-04-30 14:17:29 +00:00
mauro.giachero
d19fde901a Fix typo.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-04-30 07:46:26 +00:00
mauro.giachero
cb2dff127a Fix non-browsable 'games' due to " in slack-desc.
Thanks to slakmagik for this fix.
2009-04-29 14:35:37 +00:00
mauro.giachero
b599f398a3 Fix bug where "sbopkg -c -v local" showed a dialog.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-04-29 14:35:25 +00:00