Commit graph

696 commits

Author SHA1 Message Date
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
51ad9966fb update ChangeLog-current.txt 2009-07-14 22:09:25 +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
3e3be5b1c7 add queuefiles directory to SlackBuild 2009-06-24 13:29:06 +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
5e965ed704 minor tweaks to ChangeLog-current.txt to remove references to .sboq and change to .sqf 2009-06-18 22:54:14 +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