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
0e1482917a
Fix maybe-uninitialized warnings detected by LTO.
2019-12-27 10:53:10 +01:00
Mohamad Barbar
66b856fa77
xbps-install: don't prompt when all pkgs on hold.
2019-12-14 13:23:31 +01:00
Doan Tran Cong Danh
36a7ddd4ae
xbps-uchroot: document end of options argument
...
Signed-off-by: Doan Tran Cong Danh <congdanhqx@gmail.com>
2019-11-24 12:28:45 +01:00
Doan Tran Cong Danh
be06a3b578
xbps-uunshare: document end of options argument
...
Signed-off-by: Doan Tran Cong Danh <congdanhqx@gmail.com>
2019-11-24 12:28:45 +01:00
Piotr Wójcik
ae26a83ad2
Preserve meta-index data on change of signing key
2019-11-02 11:53:14 +01:00
Piotr Wójcik
4e3d4d2287
Don't assume repodata is signed when has index-meta.plist
2019-11-02 11:53:14 +01:00
Piotr Wójcik
381b7b7600
Sign index-meta
2019-11-02 11:53:14 +01:00
Piotr Wójcik
b4e93a95bf
Turn off repodata signing
2019-11-02 11:53:14 +01:00
Piotr Wójcik
04194f44c8
Sign repodata
2019-11-02 11:53:14 +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
7b4a925302
bin/xbps-rindex: better error handling for writing repodata archives
...
This fixes issues when writes fail (as example if the disk is full),
where xbps would create empty repodata or stagedata archives.
2019-10-25 23:36:44 +02:00
Duncan Overbruck
04d5554ed2
bin/xbps-create: better error handling for writing archives
...
This fixes issues where if xbps-create creates a new archive on a full
disk, it will write an incomplete archive and then later fails to be
read by xbps-rindex.
2019-10-25 23:36:44 +02: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
d927517327
xbps-fbulk: do not make assert() change program behaviour.
...
... otherwise if NDEBUG is set chdir() is skipped completely.
2019-07-06 08:37:47 +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
Juan RP
0677678387
Added LTO support and fix warnings (maybe-uninitialized).
2019-06-27 18:09:26 +02:00
Juan RP
bb96486b12
xbps-install: make sure to call xbps_end() before exiting.
2019-06-27 08:02:19 +02:00
Johannes Brechtmann
44692f28d8
bin/xbps-install: update_pkg return EEXIST if package is up to date
...
makes 58509996aa
work for
xbps-install -u <pkg>
2019-06-27 07:54:11 +02:00
Duncaen
7b728f5ac0
bin/xbps-remove: fix skipping executing orphans transaction
2019-06-26 22:24:47 +02:00
Juan RP
83aa486f6b
xbps-remove: skip trans if all pkgs were not found.
...
Restores behaviour with xbps<0.54.
2019-06-25 10:32:02 +02:00
Juan RP
41b2cec356
xbps-*: use xbps_pkgdb_update() correctly.
...
xbps-{alternatives,pkgdb,reconfigure}: xbps_pkgdb_update()
has been fixed to flush when told so, and we don't need
to update the in-memory copy because we are exiting.
2019-06-22 18:50:40 +02:00
Juan RP
58509996aa
xbps-install: skip trans if all pkgs are installed or uptodate.
...
Fixes an issue pointed out by @Johnnynator
2019-06-21 19:19:09 +02:00
Juan RP
13172c22fc
xbps-install: only print num of downloaded pkgs with -D.
2019-06-21 16:26:08 +02:00
Juan RP
589a96a50e
xbps-install: with -D there are no pkgs to install/update/configure/remove.
2019-06-21 16:06:42 +02:00
Juan RP
fe943eb7d2
xbps-install(1): added -D, --download-only.
...
Added `-D, --download-only` flag to allow downloading
packages to the cache without attempting to install them.
Contributed by Toyam Cox via #9
Adapted to master by yours truly.
Close #9
2019-06-21 15:57:25 +02:00
Juan RP
4f717dc597
xbps-install(1): added -I, --ignore-file-conflicts.
...
If set it will continue with the transaction and will
just print what are the conflicting files without returning
EEXIST.
This is a temporary solution for void where there are still
some packages with conflicting files (qt5-host-tools vs qt5-tools-devel).
With input by @duncaen
2019-06-21 15:31:04 +02:00
Juan RP
288cff37f8
xbps-install: return 0 if pkg is already installed or uptodate.
...
Before this change xbps-install could return EEXIST
when the package is already installed, or already up-to-date.
Return 0 if such condition happens, and only return EEXIST
if there's a file conflict.
Close #51
2019-06-21 11:06:45 +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
071db09d3e
xbps-alternatives.1: proper credit.
2019-06-20 12:56:17 +02:00
Juan RP
6390817d7e
xbps-rindex.1: proper credit.
2019-06-20 11:44:45 +02:00
Juan RP
2df0778fcd
xbps-pkgdb.1: proper credit.
2019-06-20 11:42:30 +02:00
Juan RP
b0abcd4997
xbps-checkvers.1: proper credit.
2019-06-20 11:42:09 +02:00
Duncaen
ebb61edb16
bin/xbps-fetch: restore old behaviour for output file
2019-06-20 11:32:12 +02:00
Juan RP
e7738555b2
xbps-uhelper: restore compat.
...
Add 'digest' and 'fetch' actions again for compatibility,
but don't mention them in usage().
This way previous versions of xbps-src (that don't require xbps-0.54)
still work without changes.
2019-06-20 10:53:30 +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
b12b72e151
xbps-install/state_cb.c: minor tweaks.
2019-06-18 21:17:44 +02:00
Duncaen
a19c659616
bin/xbps-install: add the transaction_file states
2019-06-18 19:54:22 +02:00
Duncaen
91e428d54d
bin/xbps-create: record file size in files.plist
2019-06-18 19:54:22 +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
Juan RP
286193515c
xbps-rindex/repoflush.c: pass correct filename to unlink().
2019-06-18 18:49:29 +02:00
Juan RP
8018f53e0a
xbps-rindex/repoflush.c: stop abusing assert().
...
assert() must not change the program behaviour.
Make sure fchmod() and rename() succeed properly and
fail gracefully otherwise.
2019-06-18 18:49:29 +02:00
Juan RP
042ab422b2
xbps-dgraph/main.c: simplify logic.
...
Thanks to clang-analyzer for reporting a dead assignment
that lead me to rework the logic.
2019-06-18 18:49:29 +02:00
Juan RP
5f68687cbb
bin/xbps-install/main.c: fix dead assignment.
...
Found by clang-analyzer.
Bug Summary
File: bin/xbps-install/main.c
Warning: line 246, column 5
Value stored to 'rv' is never read
2019-06-18 18:49:29 +02:00