Commit Graph

3724 Commits

Author SHA1 Message Date
Duncan Overbruck
56799d8843
ci: only run coverity-scan on void-linux/xbps repo 2022-07-20 15:07:55 +02:00
Michael Aldridge
9dfeb8a0db
ci: update base CI images
Closes: #389 [via git-merge-pr]
2022-07-20 15:06:12 +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
Piotr Wójcik
b5954c80db lib/fetch: reuse http connection
With HTTP 1.1 persistent connection is default and Connection
header is not sent.
Before patch, for every file, including 512b signature, there was
done dns query, tls handshake etc.
2022-07-03 21:41:10 +00:00
Duncan Overbruck
48556b7089
.github/workflows: sync repos after updating xbps 2022-06-21 22:39:46 +02:00
Piotr Wójcik
d744b4b238 xbps-install: exclude hold packages from total download size 2022-06-21 13:40:45 +00:00
Michal Vasilek
d3b55df51b xbps-install: fflush before asking for confirmation
Closes #469
2022-06-21 13:39:31 +00:00
oopsbagel
0158000c03
bin/xbps-fetch: fix unreachable fetch result code
This commit restores the formerly unreachable code path handling the
case where the local file is identical with the remote file.

Fixes bug introduced in 66f84a8b59
2022-06-21 15:32:04 +02:00
oopsbagel
c08542ccac
tests: add xbps-fetch tests
Add test cases for xbps-fetch, including testing for:
- remote file identical with local file
- multiple files fetched
- error handling for multiple files fetched
2022-06-21 15:32:04 +02:00
janmaslo
bb98a393c0 fixed a grammatical error in the README 2022-06-12 01:14:40 +00:00
Quentin Rameau
838fea7178
xbps-query.1: Fix PROPERTIES section
After checking in the source the actually exported fields,
a few of them don't exist anymore and a few were omitted.
Also fixed some orthographic/syntax typos.
2022-05-02 15:48:43 +02:00
Quentin Rameau
2f7feb8074
xbps-query.1: new section: PROPERTIES 2022-03-16 04:19:14 +01:00
meator
c4ede2c732 _xbps: add --list-repolock-pkgs for xbps-query 2022-02-18 21:34:24 +01: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
Merlin Büge
24cb1709c7 docs: Improve description of keepconf option
keepconf is a boring option and is not needed in most situations. Make
this more clear in the documentation, e.g. that it only affects
*unchanged* configuration files, and that changed configuration files
are unaffected by this option.
2022-01-25 16:15:07 +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
Piotr Wójcik
ce4fd6a63c
xbps-query: list unavailable repositories in -L mode 2022-01-25 15:32:23 +01:00
Piotr Wójcik
49bd3d62b5
libxbps: better document xbps_rpool_foreach 2022-01-25 15:31:19 +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
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