Commit Graph
100 Commits
Author SHA1 Message Date
Duncan Overbruck fc9d32dcf7 NEWS: add XBPS_FLAG_INSTALL_AUTO fix 2023-06-24 18:55:35 +02:00
Duncan Overbruck 2ef15e76c4 tests: add another install mode test 2023-06-24 18:49:31 +02:00
Duncan Overbruck 825f1f30f9 lib: with XBPS_FLAG_INSTALL_AUTO only mark new installs as automatic
Closes: https://github.com/void-linux/xbps/issues/556
2023-06-24 18:49:31 +02:00
Duncan Overbruck c1176447f3 lib: fix preservation of install mode for updated dependencies 2023-06-24 18:49:28 +02:00
Duncan Overbruck 48c3a8208d doc: tweak doxygen a bit 2023-02-21 02:44:57 +01:00
Duncan Overbruck e0144062a4 bin/xbps-create: add sourcepkg metadata variable
This can be used similar to source-revisions, it should be set to the
pkgver of the template. This then allows to find removed subpackages by
looking for packages with outdated sourcepkg versions.
2023-02-15 21:46:43 +01:00
Duncan Overbruck be2525adc0 bin/xbps-uhelper: format usage like other xbps binaries 2023-02-11 21:32:36 +01:00
Duncan Overbruck a1a0167d80 add XBPS_SYSLOG environment variable to overwrite configuration 2022-12-24 14:29:24 +01:00
Duncan Overbruck d962eaaf3c lib: remove xhp argument from xbps_pubkey2fp 2022-12-24 14:29:24 +01:00
Duncan Overbruck 9efba6749f lib: remove xhp argument from xbps_plist_{array,dictionary}_from_file 2022-12-24 14:29:24 +01:00
Duncan Overbruck de484e9369 lib: change xbps_dbg_printf to not require xbps_handle
This allows to simplify a lot of code by not having to pass around
the xbps handle everywhere just to print some debug information.
2022-12-24 14:29:23 +01:00
Duncan Overbruck 1a3d1ea56c bin/xbps-create: unify error messages and replace asserts with error checks 2022-12-22 22:16:47 +01:00
Duncan Overbruck c70c55b19a bin/xbps-create: cleanup filetype handling 2022-12-22 22:00:47 +01:00
Duncan Overbruck 9a46051499 bin/xbps-create: cleanup readlink related code 2022-12-22 21:42:32 +01:00
Duncan Overbruck 2deb156beb lib: only include fetch.h where required
This results in a lot of places where limits.h was missing, so
this diff is larger than necessary.
2022-12-22 16:47:05 +01:00
Duncan Overbruck c7a88e5013 ci: coverity scan install and use curl 2022-08-30 14:11:21 +02:00
Duncan Overbruck eaf47d6e06 ci: fix coverity scan PATH 2022-08-30 13:55:30 +02:00
Duncan Overbruck 4dd9d17e08 ci: fix coverity scan build command 2022-08-30 13:51:13 +02:00
Duncan Overbruck 3a2162b668 ci: allow triggering coverity-scan manually 2022-08-30 13:45:00 +02:00
Duncan Overbruck 46522edb2b ci: use ghcr void containers in coverity-scan 2022-08-30 13:39:34 +02:00
Duncan Overbruck 061f5cb2e9 ci: switch to full images 2022-07-20 15:16:16 +02:00
Duncan Overbruck 5210a063ec ci: fix docker images 2022-07-20 15:12:47 +02:00
Duncan Overbruck 56799d8843 ci: only run coverity-scan on void-linux/xbps repo 2022-07-20 15:07:55 +02:00
Duncan Overbruck d8d284d7c8 lib/fetch: return 0 if buffer len is 0 and buf is NULL
Previously it would return -1 when xbps would download an empty files.
2022-07-19 15:19:01 +02:00
Duncan Overbruck 93186276ee lib/fetch: don't abort connect(2) attempts on EINVAL 2022-07-19 14:50:29 +02:00
Duncan Overbruck 48556b7089 .github/workflows: sync repos after updating xbps 2022-06-21 22:39:46 +02:00
Duncan Overbruck 3199c3a227 tests: add missing configuration file 2022-02-06 20:05:45 +01:00
Duncan Overbruck 97bb1bd413 tests: add missing newline conf file test 2022-02-06 20:02:00 +01:00
Duncan Overbruck 65afbadf08 bin/xbps-query: fix memory leak in --list-repos 2022-01-25 19:46:12 +01:00
Duncan Overbruck 14c762afeb tests: xbps-query --list-repo test case with unsynced remote repos 2022-01-25 15:39:13 +01:00
Duncan Overbruck a9f314dc82 NEWS: add xbps-query --list-repos change 2022-01-25 15:34:14 +01:00
Duncan Overbruck 7909cff6ce .github/workflows/coverity-scan.yml: remove unneeded condition 2022-01-25 15:07:04 +01:00
Duncan Overbruck 2a4028f093 .github/workflows/coverity-scan.yml: set secret token env var at job level
This stops the job from being run if the secret is not available,
i.e. forks without a coverity token.
2022-01-25 15:04:07 +01:00
Duncan Overbruck c9e47b6cd9 include/xbps.h.in: fix doxygen warnings 2021-12-31 18:33:48 +01:00
Duncan Overbruck dbb9b85a1b include/xbps.h.in: fix doxygen comments 2021-12-29 15:09:06 +01:00
Duncan Overbruck f5355e53cd xbps-query: add repo and pkgdb mode to --cat 2021-12-28 15:45:21 +01:00
Duncan Overbruck 3939d9aeb5 lib/plist_fetch.c: don't abort on ARCHIVE_WARN in xbps_archive_fetch_file_into_fd
Prior to this change, xbps-query --cat would abort if the entry file
name would contain non ascii characters as it returns ARCHIVE_WARN
when failing to use iconv to the users character encoding without
having locales initialized.
Other places in xbps already ignore ARCHIVE_WARN.
2021-12-28 15:42:25 +01:00
Duncan Overbruck 760d14576f NEWS: mention cache cleaning changes 2021-12-27 18:37:47 +01:00
Duncan Overbruck 3b28dc75e0 tests: add xbps-remove cache cleaning tests 2021-12-27 18:37:47 +01:00
Duncan Overbruck 10bfeec8a3 bin/xbps-remove: avoid allocations while cache cleaning 2021-12-27 18:37:47 +01:00
Duncan Overbruck 4fb621c6c5 bin/xbps-remove: error logging for cache cleaning
Fixes #357
2021-12-25 16:07:20 +01:00
Duncan Overbruck 6e3309b564 NEWS: mention held dependendency fix 2021-10-23 16:29:10 +02:00
Duncan Overbruck 4ee1fd976d NEWS: fix indention 2021-10-23 16:28:43 +02:00
Duncan Overbruck a4063763c8 tests: fix test to check for the correct exit status
Previously xbps just ignored hold packages, now it will exit
with an error code in case there is a dependency conflict
with a held dependency since it would previously result
in inconsistent dependency state.
2021-10-23 16:18:27 +02:00
Duncan Overbruck fccf3d79f0 lib/transaction_pkg_deps.c: skipping queued removed or held dependencies makes no sense 2021-10-23 16:14:44 +02:00
Duncan Overbruck d18e7f904a lib/transaction_pkg_deps.c: don't ignore unsatisfied held dependencies 2021-10-23 16:14:43 +02:00
Duncan Overbruck 5eeff164bf tests: add more hold package tests for #392 2021-10-23 16:14:43 +02:00
Duncan Overbruck df5a3e038b NEWS: add replaces fix/change 2021-10-23 16:13:01 +02:00
Duncan Overbruck 0191525d7c lib: make only manual install mode sticky when replacing packages 2021-10-23 16:09:02 +02:00
Duncan Overbruck 67725a656c lib: fix setting automatic-install on replaced packages that are updated in the same transaction 2021-10-23 16:09:02 +02:00
Duncan Overbruck d992fd1617 tests: add some replace tests for transitional packages 2021-10-23 16:09:02 +02:00
Duncan Overbruck a562cfbf67 NEWS: add repolock fix 2021-09-10 14:45:24 +02:00
Duncan Overbruck 1383744603 conf: fix skipping empty lines 2021-09-10 14:31:57 +02:00
Duncan Overbruck 19f3e519fd lib/transaction_internalize.c: switch out deprecated libarchive function 2021-06-26 19:19:10 +02:00
Duncan Overbruck 9139c4469f lib/transaction_files.c: document some details 2021-06-26 18:58:55 +02:00
Duncan Overbruck 62962208fd lib/transaction_files.c: fix leaving behind obsolete directories
Deleting obsolete directories is different from deleting obsolete files,
files need to be deleted by the first package that might change the file
into a different file type.
Directories need to be deleted by the last package that removes files
out of the directory to avoid ENOTEMPTY if another package has a file in
the given directory which is uninstalled later.

This fixes #282.
2021-06-26 18:58:55 +02:00
Duncan Overbruck a8d095a2ba bin/xbps-rindex: drop libarchive compat macros
Closes: #411 [via git-merge-pr]
2021-06-26 18:51:15 +02:00
Duncan Overbruck 2dc22401d5 lib: drop libarchive compat macros and use non deprecated functions 2021-06-26 18:51:15 +02:00
Duncan Overbruck fcbd7ef042 NEWS: add unpacked state changes 2021-06-26 18:48:50 +02:00
Duncan Overbruck d44aec4ecc tests: add/enable unpacked/unpack-only tests 2021-06-26 18:47:25 +02:00
Duncan Overbruck 92a21db4da lib/transaction_ops.c: do not change the transaction mode of unpacked packages
Those packages are going to be either updated or uninstalled,
changing the transaction type breaks this.
There is no apperent reason to change the type anyways.
2021-06-26 18:46:56 +02:00
Duncan Overbruck 9763a36cea NEWS: add INSTALL/REMOVE script changes 2021-06-26 18:42:43 +02:00
Duncan Overbruck dc0dda15f6 tests: add test for various script actions
Closes: #410 [via git-merge-pr]
2021-06-26 18:41:37 +02:00
Duncan Overbruck 59bcbddcdb lib/package_script.c: xbps_pkg_exec_script: remove useless copy and free 2021-06-26 18:41:37 +02:00
Duncan Overbruck 1f99a099e8 lib: run all post/purge-remove scripts at the end of the transaction 2021-06-26 18:41:37 +02:00
Duncan Overbruck 02367e3c00 lib: run pre-remove and pre-install scripts before unpacking 2021-06-26 18:41:37 +02:00
Duncan Overbruck c94648630c lib/transaction_commit.c: don't configure already unpacked packages early
This makes --unpack-only also skip the configure for currently unpacked
packages and configures unpacked packages together with all other
pckages.
2021-06-26 18:41:37 +02:00
Duncan Overbruck ab3fb82a7f lib: add binary package internalization step
- internalize scripts so we can use them before unpacking packages.
- moves some required metadata checks out of the package unpack stage
  so errors do not leave the system in a half unpacked state.

xbps_transaction_files will be changed later to use the loaded
files.plist instead of opening each binary package on its own again.
2021-06-26 18:41:37 +02:00
Duncan Overbruck c00fe9f3e1 lib/util.c: make is_revision match the code style 2021-06-26 17:14:23 +02:00
Duncan Overbruck 778dbab22b NEWS: update 2021-06-26 17:02:26 +02:00
Duncan Overbruck 72395cdf80 tests: add test for configuration key/value formatting
Closes: #412 [via git-merge-pr]
2021-06-26 17:02:26 +02:00
Duncan Overbruck 248ca4b152 lib/conf.c: cleanup a bit 2021-06-26 17:02:26 +02:00
Duncan Overbruck f86aeebd3e bin/xbps-create: stop storing mtime in files.plist
Closes: #390 [via git-merge-pr]
2021-06-26 16:55:11 +02:00
Duncan Overbruck cdb0121a99 bin/xbps-pkgdb: we don't rely on mtime anymore, the check is useless 2021-06-26 16:55:11 +02:00
Duncan Overbruck e9411eda81 lib: remove mtime updating on unchanged files 2021-06-26 16:55:11 +02:00
Duncan Overbruck 66f84a8b59 bin/xbps-fetch: exit with failure if there was a failure in any of the downloads 2021-06-26 16:47:25 +02:00
Duncan Overbruck 9cd3f8d0bf bin/xbps-fetch: fix printing uninitialized shasum in error cases 2021-06-26 16:45:10 +02:00
Duncan Overbruck 5dbe040b75 xbps-install.1: fix lint warnings 2021-06-26 16:43:07 +02:00
Duncan Overbruck 9a30f13300 lib/initend.c: only use uname(3) if native_arch was not set
if the configuration file or the env variable is used
we can skip uname(3).
2021-02-04 23:38:32 +01:00
Duncan Overbruck c6aaafb123 lib/initend.c: allow XBPS{,_TARGET}_ARCH variables to overwrite config 2021-02-04 23:27:11 +01:00
Duncan Overbruck 51b39002e5 Revert "Move all external code to lib/external."
This reverts commit 9effec0c4e.
2021-02-04 22:42:57 +01:00
Duncan Overbruck 93410bee7f Revert "xbps_init: autodetect musl libc variant at compile time."
This reverts commit 7f75fd840a.
2021-02-04 22:41:21 +01:00
Duncan Overbruck 05ff04a0fb tests: new test case for updating "unpacked" packages 2020-07-17 00:37:44 +02:00
Duncan Overbruck 44cd938115 Revert "Use shared LICENSE file for all xbps code."
This reverts commit be7d8cfaf1.

This commit missed some previous copyrights mentioned,
in general I think its better to have this per-file to
follow who wrote what and when.
2020-04-29 14:12:10 +02:00
Duncan Overbruck 7a1f5424f6 tests: add test case for explicit updates with repolock
Introduced from discussion in #273.
2020-04-22 12:18:09 +02:00
Duncan Overbruck cb580a5c1a bin/xbps-query: use puts instead of printf("%s\n", ...) 2020-04-19 11:05:00 +02:00
Duncan Overbruck 910bb5674c bin/xbps-query: simplify list printing (with truncation) 2020-04-19 11:05:00 +02:00
Duncan Overbruck a2c7f5fc29 bin/xbps-query: simplify search result printing (with truncation)
This should also fix a useless error from lgtm
2020-04-19 11:05:00 +02:00
Duncan Overbruck df5f2a9378 README.md: add coverity.com badge 2020-04-18 16:13:57 +02:00
Duncan Overbruck 8d3063b5d2 .github/workflows/coverity-scan.yml: do scheduled coverity scan 2020-04-18 15:45:33 +02:00
Duncan Overbruck c9837b9a9e .github/workflows/coverity-scan.yml: fix tar 2020-04-18 15:39:00 +02:00
Duncan Overbruck bed16c48db .github/workflows/coverity-scan.yml: ignore lock files 2020-04-18 15:29:17 +02:00
Duncan Overbruck a1f54ea4b6 .github/workflows/coverity-scan.yml: enable tests 2020-04-18 15:23:46 +02:00
Duncan Overbruck 2bc25a3369 .github/workflows/coverity-scan.yml: simplify 2020-04-18 15:17:10 +02:00
Duncan Overbruck ef4937ecb7 .github/workflows/coverity-scan.yml: fix syntax 2020-04-18 15:10:20 +02:00
Duncan Overbruck cf59b4a3b1 .github/workflows/coverity-scan.yml: use voidlinux/voidlinux docker container to build 2020-04-18 15:08:38 +02:00
Duncan Overbruck 65cd539f2d .github/workflows/coverity-scan.yml: once again I'm asking you to do a coverity scan 2020-04-18 14:55:15 +02:00
Duncan Overbruck 13babcb5c0 .github/workflows/coverity-scan.yml: fix url again 2020-04-18 14:49:27 +02:00
Duncan Overbruck 6ff38bc320 .github/workflows/coverity-scan.yml: fix coverity scan tool urls 2020-04-18 14:47:38 +02:00
Duncan Overbruck 2bb6fae5d3 .github/workflows/coverity-scan.yml: fix openssl dependency 2020-04-18 14:44:28 +02:00