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>
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>
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>
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>
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>
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>
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>
$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>
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>
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>
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>
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>