xbps/lib
Juan RP bda4452016
xbps-install: improved -D,--download-only support.
Added support to download all dependencies even
if the euid does not have write perms to rootdir.

In this mode we only care if cachedir is writable,
rootdir access is not necessary.

This is really useful to download all binary packages
required by any number of packages as any regular
user to later perform off-line installations, i.e:

```
$ xbps-install -c $PWD/cachedir -yD xbps
...
$ tree cachedir
cachedir/
├── acl-2.2.53_1.x86_64-musl.xbps
├── acl-2.2.53_1.x86_64-musl.xbps.sig
├── attr-2.4.48_1.x86_64-musl.xbps
├── attr-2.4.48_1.x86_64-musl.xbps.sig
├── bzip2-1.0.8_1.x86_64-musl.xbps
├── bzip2-1.0.8_1.x86_64-musl.xbps.sig
├── ca-certificates-20190110_1.noarch.xbps
├── ca-certificates-20190110_1.noarch.xbps.sig
├── libarchive-3.4.1_1.x86_64-musl.xbps
├── libarchive-3.4.1_1.x86_64-musl.xbps.sig
├── libcrypto45-3.0.2_2.x86_64-musl.xbps
├── libcrypto45-3.0.2_2.x86_64-musl.xbps.sig
├── liblz4-1.9.2_1.x86_64-musl.xbps
├── liblz4-1.9.2_1.x86_64-musl.xbps.sig
├── liblzma-5.2.4_2.x86_64-musl.xbps
├── liblzma-5.2.4_2.x86_64-musl.xbps.sig
├── libressl-3.0.2_2.x86_64-musl.xbps
├── libressl-3.0.2_2.x86_64-musl.xbps.sig
├── libssl47-3.0.2_2.x86_64-musl.xbps
├── libssl47-3.0.2_2.x86_64-musl.xbps.sig
├── libtls19-3.0.2_2.x86_64-musl.xbps
├── libtls19-3.0.2_2.x86_64-musl.xbps.sig
├── libxbps-0.57.1_8.x86_64-musl.xbps
├── libxbps-0.57.1_8.x86_64-musl.xbps.sig
├── libzstd-1.4.4_1.x86_64-musl.xbps
├── libzstd-1.4.4_1.x86_64-musl.xbps.sig
├── musl-1.1.24_1.x86_64-musl.xbps
├── musl-1.1.24_1.x86_64-musl.xbps.sig
├── run-parts-4.9.1_1.x86_64-musl.xbps
├── run-parts-4.9.1_1.x86_64-musl.xbps.sig
├── xbps-0.57.1_8.x86_64-musl.xbps
├── xbps-0.57.1_8.x86_64-musl.xbps.sig
├── xbps-triggers-0.113_3.noarch.xbps
├── xbps-triggers-0.113_3.noarch.xbps.sig
├── zlib-1.2.11_3.x86_64-musl.xbps
└── zlib-1.2.11_3.x86_64-musl.xbps.sig

0 directories, 36 files
$
```

Inpired by #213
Closes #213
2020-01-25 13:05:46 +01:00
..
compat
external lib/external/fexec.c: fix potential insecure usage in vfork(). 2019-06-18 18:49:29 +02:00
fetch fetch/http.c: fix tcc build failure. 2019-06-26 14:57:39 +02:00
portableproplib lib/portableproplib/rb.c: fix dead initialization. 2019-06-18 18:49:29 +02:00
archive.c Revert "Verify repodata signature" 2020-01-06 14:33:49 +01:00
cb_util.c
conf.c Add noextract configuration option 2020-01-18 15:51:13 +01:00
download.c lib/download.c: fix digest for continued downloads 2020-01-18 16:33:58 +01:00
initend.c xbps_init: fix warning on glibc. 2019-12-27 16:23:56 +01:00
log.c xbps_dbg_printf{,_append}: return if xhp is NULL. 2020-01-11 09:48:38 +01:00
Makefile libxbps: added XBPS_FLAG_INSTALL_REPRO for xbps_handle::flags. 2019-12-29 11:02:51 +01:00
package_alternatives.c Fix maybe-uninitialized warnings detected by LTO. 2019-12-27 10:53:10 +01:00
package_config_files.c package_config_files.c: fix a shadowed variable declaration. 2019-04-22 14:51:13 +02:00
package_configure.c
package_fulldeptree.c lib/package_fulldeptree.c: also use the initial item from the hashtable 2019-07-02 09:48:05 +02:00
package_msg.c Added LTO support and fix warnings (maybe-uninitialized). 2019-06-27 18:09:26 +02:00
package_orphans.c lib/package_orphans.c: the argument is not UNUSED 2019-07-02 09:48:05 +02:00
package_register.c xbps-install: fix --reproducable. 2019-12-29 16:31:23 +01:00
package_remove.c lib/package_remove.c: fix uninitialized xbps_array_t 2019-08-05 15:48:11 +02:00
package_script.c package_script.c: fix runtime with tcc 2019-10-27 09:38:50 +01:00
package_state.c
package_unpack.c Add noextract configuration option 2020-01-18 15:51:13 +01:00
pkgdb_conversion.c
pkgdb.c Added LTO support and fix warnings (maybe-uninitialized). 2019-06-27 18:09:26 +02:00
plist_fetch.c xbps_repo_fetch_remote: use XBPS_REPOIDX_META. 2020-01-06 15:09:16 +01:00
plist_find.c libxbps: fix for vpkg providers in multiple repos. 2020-01-18 12:50:59 +01:00
plist_match.c libxbps: fix for vpkg providers in multiple repos. 2020-01-18 12:50:59 +01:00
plist_remove.c
plist.c xbps_array_foreach_cb_multi: fix previous. 2019-12-27 16:22:40 +01:00
proplib_wrapper.c
pubkey2fp.c upgrade to openssl 1.1.x. 2019-01-24 14:57:50 -05:00
repo_pkgdeps.c xbps-install: improved -D,--download-only support. 2020-01-25 13:05:46 +01:00
repo_sync.c lib/repo_sync.c: set umask before creating repo cache directories 2019-06-14 21:08:55 +02:00
repo.c libxbps: fix for vpkg providers in multiple repos. 2020-01-18 12:50:59 +01:00
rpool.c Added LTO support and fix warnings (maybe-uninitialized). 2019-06-27 18:09:26 +02:00
transaction_commit.c lib/transaction_fetch.c: move fetch and verify binpkgs and make use of xbps_fetch_file_digest 2019-10-25 23:38:01 +02:00
transaction_conflicts.c libxbps: fix issue found by the recent glvnd switch. 2019-12-27 20:25:05 +01:00
transaction_fetch.c xbps-install: improved -D,--download-only support. 2020-01-25 13:05:46 +01:00
transaction_files.c Revert "Verify repodata signature" 2020-01-06 14:33:49 +01:00
transaction_ops.c xbps-install: improved -D,--download-only support. 2020-01-25 13:05:46 +01:00
transaction_package_replace.c xbps_transaction_package_replace: fix condition 2020-01-25 11:21:37 +01:00
transaction_prepare.c xbps-install: improved -D,--download-only support. 2020-01-25 13:05:46 +01:00
transaction_revdeps.c xbps_transaction_revdeps: simplify 2020-01-25 11:09:03 +01:00
transaction_shlibs.c xbps_transaction_shlibs: better interaction with on hold pkgs. 2020-01-25 10:23:06 +01:00
transaction_store.c xbps_transaction_store: fix memleak. 2020-01-06 12:47:13 +01:00
util_hash.c Revert "Sign repodata" 2020-01-06 14:31:40 +01:00
util.c Add noextract configuration option 2020-01-18 15:51:13 +01:00
verifysig.c Revert "libxbps: verify repodata signatures even if rootdir is unset." 2020-01-06 15:33:25 +01:00