classabbyamp and Duncan Overbruck
1271a3dbed
bin/: use xbps logging functions more
2023-02-11 14:23:51 +01:00
classabbyamp and Duncan Overbruck
06fbbba2e5
manpages: small formatting improvements
...
- use `.Os` to show "Void Linux" in the footer
- use `Aq Mt` to display email addresses
- use `.Lk` for the bug link
- remove unnecessary use of `.Nm <name>` when already defined
- add xbps-alternatives(1) to SEE ALSO where missing
- bump date
2023-02-10 21:33:51 +01:00
Juan RP and Duncan Overbruck
46b7057d91
Fix signed vs unsigned char issues found by NetBSD.
2021-06-26 17:13:01 +02:00
Piotr Wójcik and Duncan Overbruck
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
Érico Rolim and Duncan Overbruck
d8cf66ce36
xbps-checkvers.1: fix case of -I option.
...
Closes : #307 [via git-merge-pr]
2021-02-04 23:49:30 +01: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
Juan RP
be7d8cfaf1
Use shared LICENSE file for all xbps code.
2020-04-24 11:44:19 +02:00
Juan RP
9b695433a0
bin: sync usage and keep it consistent in all utils.
2020-04-20 21:25:14 +02:00
Piotr Wójcik and Juan RP
4a06cb41b1
bin/xbps-checkvers: mistake in manpage
2020-01-30 08:01:12 +01:00
Piotr Wójcik and Juan RP
2d3ed8db19
bin/xbps-checkvers: align help text with spaces
2020-01-25 13:21:18 +01:00
Piotr Wójcik and Juan RP
cd0f81d68c
bin/xbps-checkvers: list removed templates
2020-01-25 13:21:18 +01:00
Juan RP
34a1ab51d0
xbps-checkvers: version cache file.
...
We do not want obsolete files from previous versions, so that
we version the filename of that working version.
2019-12-27 18:23:46 +01:00
Juan RP
64aeabf3f6
xbps-checkvers: restore previous behaviour after 7a220b37db.
...
The '%n' pkgname fmt option still needs to be the sourcepkg
for xbps-src to work with no additional changes.
This restores previous behaviour, and uses binpkg's pkgname
while checking for pkgdb/repo.
2019-12-27 18:04:53 +01:00
Juan RP
7a220b37db
xbps-checkvers: use binpkg's pkgname rather than srcpkgs.
...
Up until now `xbps-checkvers` would only check for the
real sourcepkg, this broke detection of binary packages
that are subpkgs.
Added a new test case.
Close #192
2019-12-27 12:24:16 +01:00
Juan RP
9ebe82fdc3
xbps-checkvers: fix a warning with glibc.
...
found by @q66
main.c:195:8: error: ignoring return value of 'fread', declared with attribute warn_unused_result [-Werror=unused-result]
2019-10-27 09:13:46 +01:00
Duncan Overbruck
1d460bc793
bin/xbps-checkvers: make distdir absolute
...
Fixes void-linux/xbps#133
2019-08-05 15:36:27 +02:00
Juan RP
702d64c517
xbps-checkvers/Makefile: re-add -Wno-deprecated-declarations.
...
... it's still necessary due to readdir_r() with glibc.
2019-07-03 02:15:41 +02:00
Juan RP
9addb5e64e
Get rid of some old disabled warnings.
2019-07-03 01:26:07 +02:00
Duncaen
9c300a93d1
bin/xbps-checkvers: fix --format long form
2019-06-21 00:32:30 +02:00
Juan RP
2c6e0c28d4
xbps-checkvers.1: tweaks
2019-06-20 15:25:14 +02:00
Juan RP
b0abcd4997
xbps-checkvers.1: proper credit.
2019-06-20 11:42:09 +02:00
Juan RP
e083440b70
xbps-checkvers: always initialize repourl.
2019-06-19 14:00:54 +02:00
Juan RP
2d1d6245b8
xbps-checkvers.1: update default fmt.
2019-06-19 13:30:57 +02:00
Juan RP
27634afd21
xbps-checkvers: change default output fmt to "%n %r %s %t %R".
2019-06-19 13:27:08 +02:00
Juan RP
0727d9a53a
xbps-checkvers: implement --format %R (repository).
...
Close #128
2019-06-19 13:07:42 +02:00
Juan RP
eddd2cd602
xbps-checkvers: stop abusing assert().
...
assert() must not change program behaviour.
It's unlikely that xbps_dictionary_set_cstring() fails, but even
so proplib will report it, so no need to run it via assert().
2019-06-18 18:49:29 +02:00
Duncaen
3677986c7e
bin/xbps-checkvers: store character returned by fgetc in int
...
The character has to be checked for EOF (-1), otherwise with
architectures that use unsigned char by default this breaks at
compile and runtime.
https://github.com/void-linux/xbps/issues/123
2019-06-18 15:04:47 +02:00
Duncaen and Duncan Overbruck
1037a77000
xbps-checkvers: grow buffer if necessary instead of free/malloc for every file
2019-06-15 23:50:50 +02:00
Duncaen and Duncan Overbruck
323ca2f95a
xbps-checkvers: cleanup and check strdup errors
2019-06-15 23:50:50 +02:00
Duncaen and Duncan Overbruck
49cc70de9a
xbps-checkvers: rewrite check_reverts without malloc
2019-06-15 23:50:50 +02:00
Duncaen and Duncan Overbruck
e495f84954
xbps-checkvers: set rcv->fname when loading from cache
2019-06-15 23:50:50 +02:00
Duncaen and Duncan Overbruck
3805fd5297
xbps-checkvers: use proplib data structures and add cache file
2019-06-15 23:50:50 +02:00
Duncaen and Duncan Overbruck
26cc209225
xbps-checkvers: remove magic buffer and use fwrite for %t format
2019-06-15 23:50:50 +02:00
Duncaen and Duncan Overbruck
dfa6e80d13
xbps-checkvers: add %t format to get requested template name from path (ie subpackage)
2019-06-15 23:50:50 +02:00
Duncaen and Duncan Overbruck
db2eb29cbc
xbps-checkvers: add --format
2019-06-15 23:50:50 +02:00
Duncaen and Duncan Overbruck
5dfaf5c075
xbps-checkvers: allow files argument to be paths or package name
2019-06-15 23:50:50 +02:00
Duncaen and Duncan Overbruck
f18cf87e3a
xbps-checkvers: fix bug noticed by fixing another bug
2019-06-13 23:32:58 +02:00
Duncaen and Duncan Overbruck
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
Duncaen and Duncan Overbruck
0691054a59
xbps-checkvers: try to not see something like ${var##foo} as comment
2019-06-13 23:32:58 +02:00
Duncaen and Duncan Overbruck
204b9b630a
xbps-checkvers: rewrite shell substitution without buffer guessing
2019-06-13 23:32:58 +02:00
Duncaen and Duncan Overbruck
93c6825520
xbps-checkvers.1: mention --manual
2019-06-13 20:12:05 +02:00
Duncaen and Duncan Overbruck
5bed1a775c
xbps-checkvers: make usage look more like all tools
2019-06-13 20:12:05 +02:00
Duncaen and Duncan Overbruck
597c0119dd
xbps-checkvers: simplify print logic
2019-06-13 20:12:05 +02:00
Duncaen and Duncan Overbruck
abdd1047eb
xbps-checkvers: use xbps_repo_store
2019-06-13 20:12:05 +02:00
Duncaen and Duncan Overbruck
a99283bcdb
xbps-checkvers: add --manual flag to only process listed templates
2019-06-13 20:12:05 +02:00
Juan RP and Duncan Overbruck
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
Juan RP and Duncan Overbruck
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
Juan RP and Duncan Overbruck
fc98779ad1
xbps-checkvers: forgot to set correct short opt in long opts.
2019-06-12 20:04:28 +02:00
Juan RP and Duncan Overbruck
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
Juan RP and Duncan Overbruck
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