Before this patch, they were conditionally unset before
the code checking for the presence of all the required
configuration variables.
While at it, clean up the code a little.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
This patch add a function to remove from $OUTPUT packages
that are not installed. This is useful to remove from
$OUTPUT packages that are made obsolete by version updates,
or that are unwanted for whatever reason.
Addresses issue #20. Thanks to alkos333 for suggesting this
feature.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
This is a preparation patch that should have minimal
changes in functionality (some on-screen messages change,
though). Its purpose is to enable the use of the
aforementioned function to remove more than source files.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
This patch adds a sbopkg.conf option that, when enabled,
tells sbopkg to automatically delete the sources and all
the other files generated during the SlackBuild execution
right after running it.
Addresses issue #21. Thanks to Marco Bonetti and Gregory
Tourte for the report and the nice discussion.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
This patch moves the get_source() error management down to
build_package(), which is its only caller. This leads to
some code deletion (mostly related to asking the user what
to do) and gives a "retry" alternative also to source
download problems.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
This patch allows the user to retry a failed build. This
can be useful when the user mistakenly forgot to set up
some prerequisite (like creating a specific user or group),
when the build failed due to filling the build area (not
so unlikely when building large queues) and probably in
other cases too.
Addresses issue #24. Thanks to Zordrak for suggesting this
feature.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
This patch adds support for the new SBo 13.0 features, namely
x86_64 support and the ability to specify more than one source
tarball in the .info file.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
After adding an item to the queue from the search/browse
result list, sbopkg should show the list to the user again
so that he can choose another package. This is the 0.27.x
behavior, but got broken sometime.
This patch restores the correct behavior.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
This patch makes sure that the loaded queue list gets
delete before beginning the loading operations.
Without this patch, the sequence:
- load queue 'foo'
- clear the queue
- load queue 'foo' again
results in an empty queue, since on the second load 'foo'
gets skipped since it's listed as already loaded.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
components, using it in check_for_updates() and add_all_to_queue() and
changing the declared and used variables to suit - also
reformatting/reindenting a few lines, correcting a couple of typos, and fixing
the variable declarations of info_item() along the way - thanks to Mauro and
Chess for review and suggestions.