xbps/bin/xbps-install
Juan RP 166caab986 Do not silently update xbps on any install/update transaction.
When there's a new xbps update, xbps-install(1) will now return
EBUSY (16) and a message (if dry-run disabled) explaining
how to proceed.

If there's an update and transaction does not contain xbps, it will
error out unless the 'xbps' pkg is the only target pkg, i.e:

	# xbps-install -Su
	# echo $?
	16

To update xbps, the only way to proceed is to explicitly declare
it as an update, i.e:

	# xbps-install -u xbps

The dry-run mode will still show there's an xbps update.

Modified the existing test cases to satisfy the new behaviour.

Closes #166
Closes #142
2019-12-27 21:35:40 +01:00
..
defs.h xbps-{install,remove}: implemented column/wide output mode. 2014-10-30 11:23:10 +01:00
fetch_cb.c fix compilation of fetch_cb on gcc 7 2017-08-22 18:44:32 -04:00
main.c xbps-install: make sure to call xbps_end() before exiting. 2019-06-27 08:02:19 +02:00
Makefile bin/xbps-install: remove duplicate from Makefile 2019-03-22 19:14:08 +01:00
question.c xbps-install: make question() read the whole input line 2019-06-07 19:38:51 +02:00
state_cb.c xbps-install/state_cb.c: minor tweaks. 2019-06-18 21:17:44 +02:00
transaction.c Do not silently update xbps on any install/update transaction. 2019-12-27 21:35:40 +01:00
util.c xbps-install: only print num of downloaded pkgs with -D. 2019-06-21 16:26:08 +02:00
xbps-install.1 xbps-install(1): added -D, --download-only. 2019-06-21 15:57:25 +02:00