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