xbps/lib
Érico Rolim 01180f9cb6
lib/repo: change some error handling in repo_open_local.
- use less intermediate variables
- assert that archive_read_new managed to allocate memory for itself:
  not ideal, but if we ever want to move from assertions it shows us
  where we need to change things
- use libarchive's archive_error_string for better error messages

Closes: #345 [via git-merge-pr]
2021-02-04 23:54:07 +01:00
..
compat Revert "Move all external code to lib/external." 2021-02-04 22:42:57 +01:00
external Revert "Move all external code to lib/external." 2021-02-04 22:42:57 +01:00
fetch fetch/http: add missing case when treating status code. 2021-02-04 23:14:34 +01:00
portableproplib Revert "Move all external code to lib/external." 2021-02-04 22:42:57 +01:00
archive.c Revert "Use shared LICENSE file for all xbps code." 2020-04-29 14:12:10 +02:00
cb_util.c Revert "Use shared LICENSE file for all xbps code." 2020-04-29 14:12:10 +02:00
conf.c Revert "Use shared LICENSE file for all xbps code." 2020-04-29 14:12:10 +02:00
download.c lib/download.c: fix digestlen assert and add if condition to avoid misuse 2020-02-10 15:03:54 +01:00
initend.c lib/initend.c: only use uname(3) if native_arch was not set 2021-02-04 23:38:32 +01:00
log.c Revert "Use shared LICENSE file for all xbps code." 2020-04-29 14:12:10 +02:00
Makefile lib/Makefile: fix linking for libxbps.so. 2021-02-04 23:15:11 +01:00
package_alternatives.c Revert "Use shared LICENSE file for all xbps code." 2020-04-29 14:12:10 +02:00
package_config_files.c Revert "Use shared LICENSE file for all xbps code." 2020-04-29 14:12:10 +02:00
package_configure.c Revert "Use shared LICENSE file for all xbps code." 2020-04-29 14:12:10 +02:00
package_fulldeptree.c Revert "Use shared LICENSE file for all xbps code." 2020-04-29 14:12:10 +02:00
package_msg.c Revert "Use shared LICENSE file for all xbps code." 2020-04-29 14:12:10 +02:00
package_orphans.c Revert "Use shared LICENSE file for all xbps code." 2020-04-29 14:12:10 +02:00
package_register.c Revert "Use shared LICENSE file for all xbps code." 2020-04-29 14:12:10 +02:00
package_remove.c Revert "Use shared LICENSE file for all xbps code." 2020-04-29 14:12:10 +02:00
package_script.c Revert "Use shared LICENSE file for all xbps code." 2020-04-29 14:12:10 +02:00
package_state.c Revert "Use shared LICENSE file for all xbps code." 2020-04-29 14:12:10 +02:00
package_unpack.c tree-wide: remove unnecessary __UNCONST usage. 2021-02-04 23:02:39 +01:00
pkgdb_conversion.c Revert "Use shared LICENSE file for all xbps code." 2020-04-29 14:12:10 +02:00
pkgdb.c Revert "Use shared LICENSE file for all xbps code." 2020-04-29 14:12:10 +02:00
plist_fetch.c xbps_repo_fetch_remote: use XBPS_REPOIDX_META. 2020-01-06 15:09:16 +01:00
plist_find.c Revert "Use shared LICENSE file for all xbps code." 2020-04-29 14:12:10 +02:00
plist_match.c Revert "Use shared LICENSE file for all xbps code." 2020-04-29 14:12:10 +02:00
plist_remove.c Revert "Use shared LICENSE file for all xbps code." 2020-04-29 14:12:10 +02:00
plist.c Revert "Use shared LICENSE file for all xbps code." 2020-04-29 14:12:10 +02:00
proplib_wrapper.c proplib_wrapper: remove return from void functions. 2021-02-04 23:09:35 +01:00
pubkey2fp.c tree-wide: remove unnecessary __UNCONST usage. 2021-02-04 23:02:39 +01:00
repo_sync.c Revert "Use shared LICENSE file for all xbps code." 2020-04-29 14:12:10 +02:00
repo.c lib/repo: change some error handling in repo_open_local. 2021-02-04 23:54:07 +01:00
rpool.c Revert "Use shared LICENSE file for all xbps code." 2020-04-29 14:12:10 +02:00
transaction_check_conflicts.c Revert "Use shared LICENSE file for all xbps code." 2020-04-29 14:12:10 +02:00
transaction_check_replaces.c Revert "Use shared LICENSE file for all xbps code." 2020-04-29 14:12:10 +02:00
transaction_check_revdeps.c Revert "Use shared LICENSE file for all xbps code." 2020-04-29 14:12:10 +02:00
transaction_check_shlibs.c Revert "Use shared LICENSE file for all xbps code." 2020-04-29 14:12:10 +02:00
transaction_commit.c Avoid file descriptor leakes (fix #303) 2021-02-04 23:16:27 +01:00
transaction_fetch.c Revert "Use shared LICENSE file for all xbps code." 2020-04-29 14:12:10 +02:00
transaction_files.c Revert "Use shared LICENSE file for all xbps code." 2020-04-29 14:12:10 +02:00
transaction_ops.c Revert "Use shared LICENSE file for all xbps code." 2020-04-29 14:12:10 +02:00
transaction_pkg_deps.c Revert "Use shared LICENSE file for all xbps code." 2020-04-29 14:12:10 +02:00
transaction_prepare.c Revert "Use shared LICENSE file for all xbps code." 2020-04-29 14:12:10 +02:00
transaction_store.c Revert "Use shared LICENSE file for all xbps code." 2020-04-29 14:12:10 +02:00
util_hash.c Revert "Use shared LICENSE file for all xbps code." 2020-04-29 14:12:10 +02:00
util_path.c Revert "Use shared LICENSE file for all xbps code." 2020-04-29 14:12:10 +02:00
util.c Revert "Use shared LICENSE file for all xbps code." 2020-04-29 14:12:10 +02:00
verifysig.c tree-wide: remove unnecessary __UNCONST usage. 2021-02-04 23:02:39 +01:00