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
meator
b1dfdfce25
xbps-create: fix typo in manpage
2021-10-13 18:16:41 +02:00
Duncan Overbruck
a562cfbf67
NEWS: add repolock fix
2021-09-10 14:45:24 +02:00
Piotr Wójcik
59ea6a5388
lib: tighten repolock
...
when repolocked package has newer version in other repository and other
package depend on that newer version, repolocked package was updated and
swiched to other repo, while repolock status was left enabled
2021-09-10 14:40:02 +02:00
Piotr Wójcik
ee2b5fb56f
tests: package with repolock as dependency
2021-09-10 14:40:02 +02:00
Duncan Overbruck
1383744603
conf: fix skipping empty lines
2021-09-10 14:31:57 +02:00
Érico Nogueira
587856eb89
xbps-install.1: improve description for -y.
...
It is a common confusion that --yes should also accept new signing keys;
it really shouldn't, so document that explicitly. Also explain how to
tell XBPS about trusted keys.
2021-06-28 00:25:18 +02:00
Érico Rolim
9e812c2d7e
tests/xbps/xbps-digest: create tests.
2021-06-27 23:17:54 +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
Juan RP
46b7057d91
Fix signed vs unsigned char issues found by NetBSD.
2021-06-26 17:13:01 +02:00
Juan RP
18a2a2b0a7
configure: use command -v rather than which(1).
2021-06-26 17:07:16 +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
eater
453595a822
lib/conf.c: strip whitespace after value in config
...
Closes : #407 [via git-merge-pr]
2021-06-26 17:02:26 +02:00
Piotr Wójcik
18416e2de8
xbps-checkvers: list installed subpackages
...
Subpackages without main package installed wasn't reported
at all. This can produce duplicates in output, but checkvers'
output isn't good to loop over without passing through
./xbps-src sort-dependencies anyway.
Closes : #404 [via git-merge-pr]
2021-06-26 16:58:45 +02:00
Piotr Wójcik
9f5a029a3f
dewey.c: convert to UTF-8
...
Closes : #396 [via git-merge-pr]
2021-06-26 16:57:04 +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
Đoàn Trần Công Danh
6122bff7fa
compat: correct HAVE_HUMANIZE_NUMBER typo
...
It should be HAVE_HUMANIZE_NUMBER instead of HAVE_HUMANIZE_HUMBER, from
the name of humanize_number(3).
It's mispelt only in this file, the configure script gets it correctly.
Closes : #334 [via git-merge-pr]
2021-06-26 16:54:03 +02:00
Piotr Wójcik
379cd4da2c
xbps-install: in dry run mode, print transaction even when disk is full
...
Closes : #322 [via git-merge-pr]
2021-06-26 16:51:43 +02:00
Daniel T. Borelli
024c4cc75d
bin/xbps-create: fix incorrect assert variable
...
Closes : #309 [via git-merge-pr]
2021-06-26 16:50:05 +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
Alexis
c797c7fbc4
xbps-install.1: Add further details about -n
.
...
Closes : #281 [via git-merge-pr]
2021-06-26 16:29:41 +02:00
Érico Nogueira
b18499a62d
bin/xbps-query: use fwrite directly.
...
Avoids allocations and an unnecessary loop (and printf usage, fputs
would have been enough).
Closes : #401 [via git-merge-pr]
2021-06-26 16:07:59 +02:00