Commit Graph

454 Commits

Author SHA1 Message Date
mauro.giachero
8abae87d4d Update sbopkg-renames.
Add the wbxml2 -> libwbxml rename to the sbopkg-renames
file, as pointed out by Chess Griffin.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-03-24 14:05:20 +00:00
slakmagik
96ab30447f Corrected a trio of typos in comments. 2009-03-23 22:57:40 +00:00
chess.griffin
3d96455085 change paths and make other edits to sbopkg.conf.new; this requires some changes to sbopkg itself, which will be forthcoming, but for now, sbopkg from SVN may not work correctly. 2009-03-20 19:56:40 +00:00
chess.griffin
98f22ddea7 update both French man pages; move them into correct location in /usr/man/fr/* and remove them from the /docs directory in -stable branch and correctly name them in -current by removing the _fr tag; thanks to Marie-Claude Collilieux. 2009-03-17 00:52:26 +00:00
slakmagik
fc4d0f87d5 Simplified the way SBOVER is assigned to, adding Revision to the list of the
script's svn:keywords and handing subversion's expansion of that to cut
2009-03-15 08:07:50 +00:00
slakmagik
64fd6c526a Fix a tr invocation. Thanks to Marie-Claude Collilieux for raising this issue. 2009-03-12 22:19:09 +00:00
chess.griffin
71ef334ac5 remove user mode support; add single check for root at start of script; update ChangeLog-current.txt 2009-03-11 12:46:22 +00:00
chess.griffin
dad7b0eada move sbopkg from /usr/bin to /usr/sbin; update sbopkg.SlackBuild and sspm to reflect this change to /usr/sbin; move French man pages to /usr/man/fr/man*; update ChangeLog-current.txt 2009-03-10 02:53:20 +00:00
slakmagik
612cb1ca13 Altered sed expression to work around calcurse filename idiosyncrasy 2009-03-04 11:51:31 +00:00
mauro.giachero
b37acfa223 check_for_latest(): cleanup and fixlet.
Remove some useless code from check_for_latest(), and
fix the reported download folder.
Thanks to David Somero for reporting and fixing the
bogus printout.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-03-03 08:49:49 +00:00
chess.griffin
7ddc295530 tag and release 0.27.0 2009-02-26 15:04:30 +00:00
mauro.giachero
f3da07db8e Save on exit: don't prompt the user when not useful.
If the user just saved a queue, or loaded a previously
saved one, there's no need to prompt him for saving it.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-02-25 15:16:13 +00:00
chess.griffin
7262d5fa8b show queuefilename in dialog logs to match behavior of cli mode 2009-02-25 03:16:39 +00:00
chess.griffin
c14c9d6359 commit two patches by Mauro Giachero implementing an 'autoqueue' feature, where the user can specify either a list of packages to -b or -i (already implemented) or a queuefile (new addition). Couple this with the new -e switch, that allows user to decide how build errors are handled (options are ask|stop|continue) and sbopkg can now automatically run through a large queue without stopping on errors (hence the term 'autoqueue'). Also, slakmagik provides a few fixes on this, provided a patch to allow for a more graceful exit on certain circumstances; many thanks to Mauro for the autoqueue implementation and thanks to slakmagik for the addtional cleanup patch; also update ChangeLog-current.txt and sbopkg(8) man page to reflect new command line switches. 2009-02-24 22:01:47 +00:00
chess.griffin
e2d3eef879 modify size of search box a bit; clarify 'inst:' is for string searches 2009-02-24 04:27:47 +00:00
chess.griffin
406d173ced fix issues with ChangeLog.txt 2009-02-24 03:39:33 +00:00
chess.griffin
d679b19e7c update dates in both man pages 2009-02-24 02:48:35 +00:00
chess.griffin
0f98cf0e7e add check to make sure pkg is still in OUTPUT before installing; provide a bit of explanation about 'inst:' in the search box 2009-02-24 02:12:21 +00:00
chess.griffin
007c21b423 move -q to -g (general search) and create new -q for 'quiet' which will quiet down the command line output a bit; remove some old comments in sbopkg re: kate; include little fixlet bug from slakmagik where cursor would not appear after pressing control-c; update sbopkg.8 man page regarding -g and -q (and also add in undocumented -u, check for update to sbopkg); update ChangeLog-current.txt 2009-02-23 22:23:50 +00:00
chess.griffin
3a55e8b3ef commit slakmagik's patch implement a feature request that allows user to do a string search by installed packages only; thanks to slakmagik for the patch 2009-02-23 21:50:38 +00:00
chess.griffin
1b4b4a8f41 add local COUNTER FILE to rename_user_queue 2009-02-23 19:26:35 +00:00
chess.griffin
b8b07a4df2 tweak the kate workaround per suggestion by slakmagik 2009-02-23 14:24:06 +00:00
chess.griffin
18bf6405f2 commit another little patch from slakmagik (return_of_the_qfm); thanks to slakmagik for the patch 2009-02-23 14:21:25 +00:00
chess.griffin
f149581c51 commit little buglet pointed out by slakmagik 2009-02-23 02:36:47 +00:00
chess.griffin
7d2ada3cbf Pull setting of DIFF and DIFFOPTS out of sbopkg and put them in sbopkg.conf; document same in sbopkg.conf man page; update ChangeLog-current.txt 2009-02-22 05:05:25 +00:00
chess.griffin
18358babbb commit patch from Phillip Warner to fix some issues in info_item where sbopkg would incorrectly not list a package as being installed if it had an older name -- essentially, we need to run through sbopkg-renames again; thanks to Phillip Warner for the patch 2009-02-21 04:12:13 +00:00
chess.griffin
16bed7ec9f Update ChangeLog-current.txt; also toss in a little something for Mauro :-) 2009-02-21 04:06:49 +00:00
chess.griffin
c584e7d765 commit the last of a large group of patches from slakmagik; this one modifies the add_item_to_queue function and provides a bit more information to the user; thanks to slakmagik for the patch; I would also like to take a moment to specifically thank both slakmagik and Mauro Giachero for their review of these patches, and their work to improve them and work out the kinks; there has been a /lot/ of patches and stuff flying around and they have been a big help at keeping it all straight 2009-02-21 04:02:18 +00:00
chess.griffin
e6183c8595 commit another patch from slakmagik, that brings in the ability to delete or rename a build queue; also rework the save_user_queue a bit, and include a validate_queue_name function; also tweak the queue menu a bit; thanks to slakmagik for the patch 2009-02-21 03:58:58 +00:00
chess.griffin
96903b14a1 commit patch from slakmagik that brings in 'queue_dir_lister' that shows a checklist of the contents of QUEUEDIR; also, make some changes to load_user_queue to take advantage of this new queue_dir_lister function; many thanks to slakmagik for the patch 2009-02-21 03:52:53 +00:00
chess.griffin
d8083b17fb commit another patch from slakmagik that renames 'delete build queue' to 'edit build queue'; thanks to slakmagik for the patch 2009-02-21 03:49:48 +00:00
chess.griffin
f6703f7042 commit patch from slakmagik to rework the queue saving and backup queue management; thanks to slakmagik for the patch 2009-02-21 03:47:06 +00:00
chess.griffin
3b9790e9b7 add French translation of the two sbopkg man pages; these will be located in the /doc directory for now; many thanks to Marie-Claude Collilieux for the work she put into the translation; update ChangeLog-current.txt; update SlackBuild to include these two man pages in /doc directory 2009-02-19 22:10:50 +00:00
chess.griffin
26b6a300d3 fix inverted lines from one of slakmagik's patches 2009-02-19 21:07:26 +00:00
chess.griffin
fd40dc66e9 slip in a minor tweak I forgot to add to a previous commit 2009-02-19 20:04:51 +00:00
chess.griffin
3cdbdac4c0 commit minor cleanup patch; thanks to slakmagik for the patch and thanks to Mauro Giachero for his comments and review 2009-02-19 19:59:39 +00:00
chess.griffin
339a1e2d2f commit patch from slakmagik to clean up/rework some the dialogs during the queue processing; thanks to slakmagik for the patch and thanks to Mauro Giachero for his comments and review 2009-02-19 19:57:28 +00:00
chess.griffin
f4a19a469b implement some improvements to the diff patch previously committed; this one now includes DIFF and DIFFOPTS as two variables that can be set by the user; thanks to Phillip Warner for the suggestions, and for both Mauro Giachero and slakmagik for coming up with a good implementation. 2009-02-18 15:08:24 +00:00
mauro.giachero
3907e6d45d Improve the "dialog/rxvt workaround" introduced in r457
Make the workaround less CPU-hungry and also enable it
for screen sessions.
Thanks to Phillip Warner for the extensive feedback, and
to slakmagik for suggesting the use of 'pgrep'.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-02-18 14:44:41 +00:00
mauro.giachero
334aa785fa Implement a dialog/rxvt workaround
Work around dialogs non being drawn on rxvt-based
terminals unless the user resizes the window.
Thanks to Phillip Warner for raising the issue.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-02-16 17:36:40 +00:00
mauro.giachero
c7a8c23b7e Don't always disable the GUI when CLI arguments are provided
Some CLI switches (-d, -f and -v) make sense even when
starting the GUI version of sbopkg.
Allow the usage of these flags also when starting the dialog
version of sbopkg.
Thanks to Patzy for raising the issue on #sbopkg and to
Chess Griffin for pointing out a weakness of the first version
of the patch.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-02-16 16:57:14 +00:00
mauro.giachero
7c04aeab39 Rework source management
Rework source management to reduce code replication
and make the whole think more robust and powerful.
Functional side-effects of this rework include:
- a checklist is used to show sources, allowing
  selective removals
- md5sums are computed only at download time, not
  every time a package is built
- a new "search obsolete sources" function pointing
  out old sources present in the cache directory
Many thanks to Chess Griffin and slakmagik for their
help in cleaning up this work, testing and bug fixing.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-02-16 09:15:30 +00:00
mauro.giachero
dce4a24365 view_app_file(): fix use of stale $F variable
Fix view_app_file() to use $FILE (its private variable)
instead of $F (the caller's variable which happened to
have the same value). This was a leftover of the
app_files_chooser() split in r450.
Huge thanks are again due to slakmagik for pointing out
this bug.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-02-13 09:18:06 +00:00
chess.griffin
ef217c01fa rework the check on root:root perms for installing packages; still may need to add a new config file variable, such as 'CHECKPERMS' in order to turn this off since I know of a few folks that purposefully change the perms of their built packages and it might get annoying to have to always answer yes. With this config file variable, they can turn the perm checking off. 2009-02-12 18:03:06 +00:00
mauro.giachero
4968335fc7 Refactor file viewing
Refactor the file viewing code a tiny bit, and
use if for all file viewing.
Also, remove the "slack-desc" entry from info_item(),
since it's quite useless (it usually is a subset of
the README, and is now accessible via More Files
anyway).

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-02-12 15:38:53 +00:00
mauro.giachero
bc3adde438 pick_*() fixes
This patch fixes the "Cancel" behavior of the pick_info()
and pick_slackbuild() functions.
While I'm at it, fix the pick_file() dialog size.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-02-11 15:32:15 +00:00
chess.griffin
af3cfe1284 add message to sbopkg.8 about understanding slackbuild scripts and slackbuilds.org 2009-02-09 19:05:14 +00:00
mauro.giachero
be59e458e3 Cleanup pick_file() a little.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-02-09 14:40:29 +00:00
chess.griffin
2971eb7874 merge slakmagik's cli search patch that handles certain wildcard searches, e.g. 'sbopkg -s flash*'; thanks to Phillip Warner for the bug report and thanks to slakmagik for the patch 2009-02-09 01:57:45 +00:00
chess.griffin
8599059b4e fix typo in pick_file 2009-02-09 01:07:45 +00:00
chess.griffin
1d18b28408 change pick_slackbuild and pick_info so they are simple wrappers around new pick_file, which now provides a way for the user to see a diff of an edited .info or SlackBuild before choosing which one to use; many thanks to Mauro Giachero for helping debug/improve this patch; also update ChangeLog-current.txt 2009-02-08 20:25:46 +00:00
chess.griffin
0f2b5f3d1b remove a few FIXME leftovers 2009-02-08 00:33:33 +00:00
mauro.giachero
d068d9d713 Avoid some "No such file or directory" errors.
$PRECHECKLOG and $SBOPKGOUTPUT aren't guaranteed to exist
(the first when building single [unqueued] packages, the
second when the user interrupts the build with CTRL-C).
Test file existence before trying to 'cat', to avoid
spurious error messages in these cases.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-02-07 20:14:10 +00:00
mauro.giachero
3dd66f8871 Document the -p switch in the man page.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-02-05 13:58:39 +00:00
mauro.giachero
b9dad2286e Assorted fixes to the menu navigation
This patch brings in some fixes to the menu navigation (like some
"Main Menu" buttons not bringing to the main menu and some erratic
behavior when pressing ESC) and puts a new "Main Menu" button
in the search results dialog.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-02-05 13:48:03 +00:00
mauro.giachero
02e0d19060 Updates: make the progress bar interruptible with ESC
Add a simple non-blocking read-alike function and use it to check
whether the user pressed ESC during the updates.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-02-05 08:10:12 +00:00
mauro.giachero
ef8c8602fa Apply slakmagik's misc (cleanup) patch
This patch cleans up the code, removing some useless parts
and fixing some style issues (some user-visible).
Many thanks are again due to to slakmagik for his continuous
efforts in improving sbopkg!

Signed-off-by: slakmagik
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-02-05 08:09:51 +00:00
mauro.giachero
5a7e20a146 Search: apply slakmagik's search_string patch
This patch adds the ability to search applications' READMEs
for specific words, also using regular expressions.
Many thanks to slakmagik for implementing this in the first place
and for his efforts in addressing the minor problems affecting
earlier versions of the code.

Signed-off-by: slakmagik
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-02-05 08:09:42 +00:00
chess.griffin
ab38f5e12a modify ChangeLog-current.txt; also, I meant to change SQDIR to QUEUEDIR before committing r433 but forgot (I like more descriptive vars); make that change now 2009-02-03 03:49:01 +00:00
chess.griffin
08d85254d1 commit slakmagik's view_more_file patch that provides a means for the user to view other files in the repo, such as doinst.sh and .desktop files, adds a new sbopkg.conf variable, SQDIR, for 'saved queues directory' and provides a list of saved queues instead of asking the user to enter a filename; thanks to slakmagik for the patch; modified by Mauro and Chess 2009-02-03 03:38:44 +00:00
chess.griffin
fecac6f520 commit slakmagik's 'useless uses of cat' patch ;-); thanks to slakmagik for the patch and thanks to Mauro for some comments and modifications to it. 2009-02-02 20:22:48 +00:00
chess.griffin
11192d71f0 tag and release 0.26.2 2009-01-31 02:08:12 +00:00
chess.griffin
35a005c7b4 fix regression where packages could not be installed in certain instances 2009-01-31 02:00:51 +00:00
chess.griffin
e287141392 fix filetype on ChangeLog-current and both man pages back to unix; not sure how those got switched to dos 2009-01-30 23:09:43 +00:00
chess.griffin
1f34ff46c3 tag and release 0.26.1 2009-01-30 22:07:32 +00:00
chess.griffin
30155b7ff5 fix issue where user would be told each individual update was added to the queue as it was added; also fix bug where sometimes search results would be duplicated in the search results dialog; thanks to Phillip Warner for both bug reports. 2009-01-30 04:34:45 +00:00
chess.griffin
1b25251101 modify sbopkg.conf and related man page regarding changing SLACKVER=12.2 to SLACKVER=12.2; thanks to TSquaredF for the suggestion 2009-01-30 04:18:27 +00:00
chess.griffin
780d64ff49 commit slakmagik's 'reassignment and convert to case' patch; also, implement a couple of security fixes, namely, customize the info_item and queue menus depending if user is not root (thanks to slakmagik for the original implementation of this), and also, do a couple of checks in install_package funtion, including checking that user is root and also that package to be installed has root:root permissions; thanks to Phillip Warner for raising these issues. 2009-01-30 03:43:33 +00:00
chess.griffin
e9213e6fd4 tag and release 0.26.0 2009-01-29 14:47:33 +00:00
mauro.giachero
0753b20302 Fix info_item $ARCH visualization
This patch fixes most of the problems with $ARCH visualization
in info_item.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-01-29 14:36:18 +00:00
chess.griffin
e41f94790f remove most of the remaining old commented out code 2009-01-28 17:30:23 +00:00
chess.griffin
08db2b3c1a clean up changes to check_write 2009-01-28 17:26:35 +00:00
chess.griffin
5e44f31e73 correctly test whether we are loading a queue so as to not show a done message after each one is loaded -- introduced in r400 and r401 2009-01-28 15:33:07 +00:00
chess.griffin
f80218a292 remove UPDATELIST-DEBUGGING; update TODO; remove reference to UPDATELIST-DEBUGGING from sbopkg(8) man page 2009-01-28 14:49:17 +00:00
chess.griffin
4a6a0825e9 list sbopkg-renames in sbopkg(8) man page; minor ChangeLog-current.txt edits 2009-01-28 14:43:31 +00:00
chess.griffin
c093887f28 add simple check for sbopkg-renames 2009-01-28 14:25:55 +00:00
mauro.giachero
160ad59fad Properly manage sbopkg-renames on install
Since the sbopkg-renames is just another configuration file,
give it the .new extension and manage it on installation.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-01-28 12:56:23 +00:00
mauro.giachero
7a23a7cf8c Print MD5 sums on failures
Print the obtained and expected MD5 sums on mismatch.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-01-28 12:56:12 +00:00
mauro.giachero
157991f117 Allow users to use sbopkg without a global configuration file
This patch allows users to run sbopkg even without the global
configuration file, or when it doesn't contain all the required
variables, as long as the ~/.sbopkg.conf file is available and
complete enough to fill the gaps.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-01-28 12:56:04 +00:00
chess.griffin
ff2d6ef940 remove commented out code in queue_menu and utilities_menu 2009-01-27 19:48:08 +00:00
chess.griffin
59bfe8bf28 remove old commented out code replaced by new add_item_to_queue function. 2009-01-27 19:43:11 +00:00
chess.griffin
221ca87dfb remove old browsing code: get_category_items_list and browse_items 2009-01-27 19:19:48 +00:00
chess.griffin
fedbca2b32 say goodbye to old update code :-) 2009-01-27 19:16:05 +00:00
chess.griffin
b5789a4b57 work on the delete queue; fix sed expression removing ON or OFF b/c it was causing some strangeness from time to time; also, redo the commit where nothing displayed if user presses 'Done' without making any changes 2009-01-27 17:35:14 +00:00
chess.griffin
f5b861fea9 extend last commit to backup queue i.e., do not prompt for each pkg in backup queue as it is loaded; do not tell user items were deleted from queue if nothing was deleted; make the backup silent; update for-next-release 2009-01-27 16:49:43 +00:00
chess.griffin
58d38b7dec do not prompt user after each individual app is added to the queue when loading a saved queue (but still provide this feedback for single additions to the queue from info_item or search results; also, do not ask user if they want to keep or delete queue when doing a single build; thanks to alkos333 for the suggestion on the former. 2009-01-27 16:29:02 +00:00
mauro.giachero
0a7c217a08 Delete queue: make better use of 'sed'
Make delete_build_queue() use 'sed' the right way instead
of doing an "approximate" first pass and a second "fix-up"
patch.

Many thanks to slakmagik for pointing out the issue and
for providing the right regular expressions. Also, my
sincere apologies for crediting him as "jsunx1" in some
previous commits.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-01-27 15:53:58 +00:00
mauro.giachero
66d1ecb5de Update list: show progress indicator
Show a nice progress indicator instead of a "please wait"-style message.
The code containg a CLI implementation of a progress bar, and a gateway
function choosing between the "dialog" and the "cli" version depending
on whether we're using ncurses. The code should also be generic
enough to be reused whenever another gauge comes handy.

Many thanks to alkos333 for the idea and for the "dialog" implementation.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
2009-01-27 15:53:47 +00:00
chess.griffin
6474e2de71 update contributors - fix João's name and add TSquaredF 2009-01-27 04:16:42 +00:00
chess.griffin
5a6df761a0 show BUILD in prechecklog; change 'ERROR' to 'WARNING' when app is already in the queue; update for-next-release 2009-01-27 03:40:58 +00:00
chess.griffin
6ca876b4ad fix segfault when selecting 'Main Menu' from the info_item menu 2009-01-27 03:06:19 +00:00
chess.griffin
dd1bcc81fe clean up queue and utilities menu functions so they are like the main menu function; there are still other menus that need to be cleaned up like this. 2009-01-27 02:33:05 +00:00
chess.griffin
ac2acef76c Comment out the 'Exit sbopkg' from main menu and shorten it by 1; use <Exit> button to exit sbopkg 2009-01-27 02:07:10 +00:00
chess.griffin
d9ae15df75 first crack at fixing issue where failed download would still attempt a md5sum check; correctly remove the temporary backup queue; fix issue where the local/original slackbuild/.info would display twice 2009-01-27 01:41:09 +00:00
chess.griffin
eb8d12c105 fix issue where more than one build option/flavor would cause the options dialog to not load; thanks to TSquaredF for the bug report 2009-01-26 19:28:51 +00:00
chess.griffin
09ade47410 minor word changes and small resizing of some menus 2009-01-24 18:54:24 +00:00
chess.griffin
2e2694f309 add test for DEBUG upon startup 2009-01-24 16:12:12 +00:00
chess.griffin
4e71a3c264 futher tweaks to the ck_dir function to improve readability; fix a typo while I am there. 2009-01-24 15:40:47 +00:00
chess.griffin
a8f802ba32 re-fix artwiz by adding all three artwiz language to sbopkg-renames; update ChangeLog-current.txt 2009-01-24 14:03:40 +00:00
chess.griffin
340d31e43a fix minor typos etc. 2009-01-24 04:42:10 +00:00