pull: add --direct mode + make various eatures optional + explicit checksum verification
authorLennart Poettering <lennart@poettering.net>
Wed, 9 Jun 2021 15:19:15 +0000 (17:19 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 17 Aug 2021 08:09:04 +0000 (10:09 +0200)
commitc40d82abf7b23803aa7394a7a7e24c40c32af851
tree3b5ded27e3f43491361f507571f139c6951b2126
parentd32a5841fb1aabc0e2fd138d78b5f66d31b3ba77
pull: add --direct mode + make various eatures optional + explicit checksum verification

This does what the previous commit did for systemd-import the same way
for systemd-pull.

It also adds one more thing: the checksum validation is extended, in
addition of doing SHA256SUMS/gpg verification it is now possible to
immediately specify a hash value on the command line that the download
needs to match. This is particularly useful in --direct mode as we can
download/decompress/unpack arbitrary files and check the hash of the
downloaded file on-the-fly.
src/import/pull-common.c
src/import/pull-common.h
src/import/pull-job.c
src/import/pull-job.h
src/import/pull-raw.c
src/import/pull-raw.h
src/import/pull-tar.c
src/import/pull-tar.h
src/import/pull.c