Commit Graph

3748 Commits

Author SHA1 Message Date
classabbyamp
6de3c0f1fd lib/repo.c: add user-facing error message when repodata doesn't exist
Instead of just cryptically exiting 0 when opening a non-existant
repodata or stagedata, with the only message existing in the debug
output, show an error to the user on stderr.

mentioned in #519
2023-01-30 15:32:55 +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
classabbyamp
be7e532c3c xbps-reconfigure: add ability to reconfigure dependencies
adds `-x/--deps` and `--fulldeptree`, that behave similar to the xbps-query modes

fixes #464
2022-12-22 13:47:33 +01:00
Fotios Valasiadis
f5d84e8339 changed order for readability 2022-12-22 13:37:22 +01:00
Fotios Valasiadis
97db203822 update xbps_transaction_update_packages(3) doc 2022-12-22 13:37:22 +01:00
classabbyamp
51e74505c2 README.md: update status badges 2022-12-11 14:09:30 +01:00
classabbyamp
0d0a2b9657 bin/xbps-rindex/remove-obsoletes.c: always opendir() pwd
If repodir is given as a relative path, it will not work because it will
try to open the dir relative to itself because it already chdir()ed into
repodir. This fixes xbps-rindex -r when relative paths are specified.

fixes #519
2022-12-09 20:45:29 +01:00
classabbyamp
0990b2ec81 CI: minor improvements to build/test workflow
- add a concurrency group so things aren't run on push *and*
  pull_request update
- add a name to steps missing one
2022-12-09 20:32:54 +01:00
classabbyamp
e43d8d90fa CI: migrate from LGTM to Github CodeQL
Github now runs the same service:
https://github.blog/2022-08-15-the-next-step-for-lgtm-com-github-code-scanning/
2022-12-09 20:32:54 +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
Fotios Valasiadis
4ee3960377 fix minor mistake in README 2022-08-29 11:47:37 +00: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
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