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