5dfaf5c075
xbps-checkvers: allow files argument to be paths or package name
2019-06-15 23:50:50 +02:00
b2f5afd02e
lib/repo: add xbps_repo_remove and use it in xbps_rpool_foreach
...
https://github.com/void-linux/xbps/issues/3
2019-06-15 21:11:07 +02:00
2ae5dc304b
TODO: update with new stuff.
...
Signed-off-by: Juan RP <xtraeme@gmail.com >
2019-06-15 20:42:32 +02:00
104e8393f3
lib/fetch: fix happy eyeballs without any usable addresses and catch more errors
2019-06-15 19:19:40 +02:00
8018833010
lib/fetch: add FORCE_IPV{4,6} environment variables
2019-06-15 19:19:40 +02:00
271601dd0e
fulldeptree: replace another assert() with proper return code.
...
Signed-off-by: Juan RP <xtraeme@gmail.com >
2019-06-15 18:15:13 +02:00
a9a889c54d
fulldeptree: return a proper error if deps can't be resolved.
...
xbps_get_pkg_fulldeptree() now returns NULL and sets errno to ENODEV
when there are missing dependencies, rather than assert()ing.
Added another test case to check returned error codes.
Signed-off-by: Juan RP <xtraeme@gmail.com >
2019-06-15 18:04:20 +02:00
3a70495ba6
tests/cyclic_dep_full: fix xbps-query cmd.
...
Signed-off-by: Juan RP <xtraeme@gmail.com >
2019-06-15 16:34:08 +02:00
82e7d11db8
Merge pull request #116 from Duncaen/umask
...
umask "fixes"
2019-06-15 13:08:32 +02:00
656a9145a2
Merge pull request #117 from Duncaen/xbps_binpkg_exists
...
xbps_binpkg_exists: fix access() on remote packages and avoid malloc
2019-06-15 13:07:58 +02:00
45fc07260c
xbps_binpkg_exists: fix access() on remote packages and avoid malloc
2019-06-14 23:21:06 +02:00
008e1ed901
lib/external/fexec.c: run child with 022 umask
2019-06-14 21:09:15 +02:00
c3f6f485a3
lib/repo_sync.c: set umask before creating repo cache directories
2019-06-14 21:08:55 +02:00
53e23d348e
run-tests: set ATF_SHELL=/bin/sh.
...
This way 'make check' always uses it.
Signed-off-by: Juan RP <xtraeme@gmail.com >
2019-06-14 10:21:37 +02:00
a498e7aee2
run-tests: use LD_LIBRARY_PATH instead.
...
Somehow musl does not like this LD_PRELOAD.
Signed-off-by: Juan RP <xtraeme@gmail.com >
2019-06-14 10:14:36 +02:00
7e83677ee1
.travis.yml: --enable-debug is gone, use nproc(1)
...
Signed-off-by: Juan RP <xtraeme@gmail.com >
2019-06-14 10:06:35 +02:00
04291329aa
Bump XBPS_API_VERSION and libxbps major soname.
...
- struct xbps_handle was modified.
- xbps_pkg_is_ignored() was added to the API.
Signed-off-by: Juan RP <xtraeme@gmail.com >
2019-06-14 09:54:51 +02:00
a59d5176b1
AUTHORS: dup entry.
...
Signed-off-by: Juan RP <xtraeme@gmail.com >
2019-06-14 09:48:16 +02:00
86ae6975fc
LICENSE.md -> LICENSE.
...
I thought that just making it .md would be enough to
show the characteristics of the license on the github repository
but I was wrong.
Signed-off-by: Juan RP <xtraeme@gmail.com >
2019-06-14 09:42:39 +02:00
27fb6761d0
AUTHORS: sync with reality, Gottox and duncaen are part of xbps now.
...
Merge CONTRIBUTORS too.
Signed-off-by: Juan RP <xtraeme@gmail.com >
2019-06-14 09:41:07 +02:00
f18cf87e3a
xbps-checkvers: fix bug noticed by fixing another bug
2019-06-13 23:32:58 +02:00
684d2a7187
xbps-checkvers: only allocate if $ is in the current line
...
Before this commit, it would have seen $ from following lines
and thinks it needs to substitute variables.
2019-06-13 23:32:58 +02:00
0691054a59
xbps-checkvers: try to not see something like ${var##foo} as comment
2019-06-13 23:32:58 +02:00
204b9b630a
xbps-checkvers: rewrite shell substitution without buffer guessing
2019-06-13 23:32:58 +02:00
6b3b4bc3cd
LICENSE -> LICENSE.md
2019-06-13 21:16:30 +02:00
c77c33e11e
COPYING.3RDPARTY -> LICENSE.3RDPARTY
...
Signed-off-by: Juan RP <xtraeme@gmail.com >
2019-06-13 20:56:31 +02:00
3e3b2ed0e3
COPYING -> LICENSE. This way github provides a nice overview :-)
...
Signed-off-by: Juan RP <xtraeme@gmail.com >
2019-06-13 20:54:50 +02:00
870c1a832e
README.md: reorganize build requirements section.
...
Signed-off-by: Juan RP <xtraeme@gmail.com >
2019-06-13 20:36:04 +02:00
93c6825520
xbps-checkvers.1: mention --manual
2019-06-13 20:12:05 +02:00
5bed1a775c
xbps-checkvers: make usage look more like all tools
2019-06-13 20:12:05 +02:00
597c0119dd
xbps-checkvers: simplify print logic
2019-06-13 20:12:05 +02:00
abdd1047eb
xbps-checkvers: use xbps_repo_store
2019-06-13 20:12:05 +02:00
260d21877f
tests/xbps-checkvers: add --manual mode test
2019-06-13 20:12:05 +02:00
a99283bcdb
xbps-checkvers: add --manual flag to only process listed templates
2019-06-13 20:12:05 +02:00
7a104fa911
xbps-checkvers.1: update for -s,--show-all.
...
Signed-off-by: Juan RP <xtraeme@gmail.com >
Closes : #108 [via git-merge-pr]
2019-06-13 20:12:05 +02:00
b69a399b52
tests/xbps-checkvers: update tests for new output format.
...
Signed-off-by: Juan RP <xtraeme@gmail.com >
2019-06-13 20:12:05 +02:00
79bffac877
xbps-checkvers: implement -s,--show-all.
...
This replaces -s,--show-missing. This now prints all processed packages
and outputs in the following format:
pkgname repover srcver
if `repover` or `srcver` can't be known, '?' is print.
Will be used in xbps-src soon. Thanks to @duncaen for ideas.
Signed-off-by: Juan RP <xtraeme@gmail.com >
2019-06-13 20:12:05 +02:00
f6116fc2ac
xbps_pkgdb_lock(): check if rootfs is writable.
...
As shown in https://github.com/void-linux/xbps/issues/110
/var might be rw, while / might be ro.
Check this via xbps_pkgdb_lock() for both things.
Close #110
Signed-off-by: Juan RP <xtraeme@gmail.com >
2019-06-13 17:41:01 +02:00
c3b2d7ca53
libxbps: fix xbps autoupdate when its revdeps are up-to-date.
...
The current code was failing because while checking for updates
on its reverse dependencies, up-to-date versions were treated
as an error.
Added a new test case to verify that it works as expected.
Signed-off-by: Juan RP <xtraeme@gmail.com >
2019-06-13 14:18:31 +02:00
f63d1ffe27
.gitignore: add xbps-fetch bin
2019-06-12 21:19:26 +02:00
5d186053dd
configure: remove --enable-debug
.
...
Why? because the code intentionally uses assert(), and we want the code
to always run as was designed.
Signed-off-by: Juan RP <xtraeme@gmail.com >
2019-06-12 21:18:53 +02:00
fc98779ad1
xbps-checkvers: forgot to set correct short opt in long opts.
2019-06-12 20:04:28 +02:00
d53f3243ce
xbps-checkvers: added ability to ignore conf repos via -i.
...
-i,--ignore-conf-repos has been added.
The previous -i,--installed flag has been renamed to -I.
This breaks compat but we'll need to change buildbot anyway.
Signed-off-by: Juan RP <xtraeme@gmail.com >
2019-06-12 20:04:28 +02:00
8cea3e351b
xbps-fetch(1): new utility that replaces 'xbps-uhelper fetch'.
...
xbps-install(1): document all libfetch env vars.
Signed-off-by: Juan RP <xtraeme@gmail.com >
2019-06-12 18:07:24 +02:00
9cda7ef72a
xbps-digest(1): new utility that replaces "xbps-uhelper digest".
...
See the manual page:
XBPS-DIGEST(1) General Commands Manual XBPS-DIGEST(1)
NAME
xbps-digest - XBPS utility to generate message digests
SYNOPSIS
xbps-digest [OPTIONS] [FILE] [FILE+N]
DESCRIPTION
The xbps-digest utility generates message digests for specified FILE or
stdin if unset.
OPTIONS
-m, --mode mode
Sets the message digest mode. Supported: sha256. If unset, defaults
to sha256.
-h, --help
Show the help message.
-V, --version
Show the version information.
SEE ALSO
xbps.d(5), xbps-checkvers(1), xbps-create(1), xbps-dgraph(1),
xbps-fbulk(1), xbps-install(1), xbps-pkgdb(1), xbps-query(1),
xbps-reconfigure(1), xbps-remove(1), xbps-rindex(1), xbps-uchroot(1),
xbps-uunshare(1)
AUTHORS
Juan Romero Pardines <xtraeme@gmail.com >
BUGS
Probably, but I try to make this not happen. Use it under your own
responsibility and enjoy your life.
Report bugs at https://github.com/void-linux/xbps/issues
June 12, 2019
Signed-off-by: Juan RP <xtraeme@gmail.com >
2019-06-12 16:15:18 +02:00
cf4f0f4aa0
xbps_alternatives_register: fix a memleak.
...
Signed-off-by: Juan RP <xtraeme@gmail.com >
2019-06-11 19:53:19 +02:00
bcd80f2936
xbps_alternatives_register: update pkgdb alternatives dictionary.
...
... otherwise the entry might not be added to our array and won't
hit pkgdb.
Signed-off-by: Juan RP <xtraeme@gmail.com >
2019-06-11 19:53:19 +02:00
1c85083a94
lib/package_alternatives.c: update copyright.
...
Signed-off-by: Juan RP <xtraeme@gmail.com >
2019-06-11 19:53:19 +02:00
f06edd8850
xbps_alternatives_register: no need to check for 'alloc'.
...
Found by @huglovefan. Thanks.
Signed-off-by: Juan RP <xtraeme@gmail.com >
2019-06-11 19:53:19 +02:00
5913205dcf
tests/xbps-alternatives: indent "more_entries_update" test case.
...
Signed-off-by: Juan RP <xtraeme@gmail.com >
2019-06-11 19:53:19 +02:00