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>
Prior to r361, there were two places where the slack-desc
was parsed: in the "package browser" and in the "search
results". r361 tossed most of the "package browser" code,
including that part.
It happens that the two implementation were different,
and of course the removed one was the better of the two.
This patch applies a further improved implementation to
the current code.
Thanks to "jsunx1" for providing the original
implementation and for pointing out the regression.
Thanks to Chess Griffin for preparing and sending me
a patch restoring the old behavior.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
Clean up the Original/Local selection code a
little, removing an useless loop and making
"Local" the default choice.
Thanks to "jsunx1" for raising the issue and
providing a partial implementation.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
I don't know what was the problem with this, but
I haven't found indication of a rename in the
slackbuilds.org mailing list or in the repository
itself.
For this reason, remove it from the sbopkg-renames
file.
Note that I still don't know the reason for the
old quirk, removed by r333.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
Rework the main menu to reduce complexity and code
replication.
Thanks to "jsunx1" for suggesting this and for providing
a similar implementation.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>