fetch: Fix pkg_fetch_file_to_fd cleanup
There is memory blocks which are not
freed when leaving function pkg_fetch_file_to_fd
This commit makes sure that cleanup is
called if it's available for chosen scheme
and id repo is not provided and created
in function then memory is freed as expected
at the cleanup
pkg_install: Add --register-only
This just register the package installaltion (and config file) in the database
but do not extract any files.
This will allow us to pkgbasify a system more easily.
Sponsored by: Beckhoff Automation GmbH & Co. KG
pkg_install: Add --register-only
This just register the package installaltion (and config file) in the database
but do not extract any files.
This will allow us to pkgbasify a system more easily.
Sponsored by: Beckhoff Automation GmbH & Co. KG
pkg_install: Add --register-only
This just register the package installaltion (and config file) in the database
but do not extract any files.
This will allow us to pkgbasify a system more easily.
Sponsored by: Beckhoff Automation GmbH & Co. KG
Add unregister
The goal of unregister is to remove the record from the database that
a package is install but to no touch the files (or even run the scripts
as we want to keep the generated data for example).
This will allow people to migrate from a pkgbase to a non-pkgbase install.
Sponsored by: Beckhoff Automation GmbH & Co. KG
Add unregister
The goal of unregister is to remove the record from the database that
a package is install but to no touch the files (or even run the scripts
as we want to keep the generated data for example).
This will allow people to migrate from a pkgbase to a non-pkgbase install.
Sponsored by: Beckhoff Automation GmbH & Co. KG
Add unregister
The goal of unregister is to remove the record from the database that
a package is install but to no touch the files (or even run the scripts
as we want to keep the generated data for example).
This will allow people to migrate from a pkgbase to a non-pkgbase install.
Sponsored by: Beckhoff Automation GmbH & Co. KG
fetch: completly integrate curl verbose output in debug
fix curl verbose output not showing on PKG_DBG_ALL namespace (the
default one),
integrate the dumping output into an output consistent with all the
regular debug output.
pkg_generate_checsum: make it more robust
With some buggy metadata, when parsing the manifest we may end up requesting
to generate the checksum for a package with files informations but no
checksum associated with the files, which mean f->sum would be NULL.
Accept to generate checksum in this case by processing an empty string instead of
crashing because process NULL.
Fixes: #2560
libpkg: improve curl fetch error reporting
Currently all errors that occur in curl_do_fetch() are reported to the
user as "Failed to fetch X: No Error" which is both incorrect and very
unhelpful.
With this patch, the correct error message from libcurl is reported
to the user, for example "Failed to fetch X: Could not resolve hostname"
This patch does not fix all the error handling done by the libcurl
fetching code, but it does fix the case that seems to be most commonly
hit by users.
Closes: https://github.com/freebsd/pkg/issues/2498
Sponsored by: The FreeBSD Foundation