Enno Boland
2fe65dccec
rename xbps-packages to void-packages
2014-09-26 14:24:06 +02:00
Enno Boland
b5f357bd5e
bin/xbps-create: update manpage.
2014-09-23 20:50:59 +02:00
Enno Boland
78203c1735
bin/xbps-rindex: fix adding packages with reverts.
2014-09-23 19:14:45 +02:00
Enno Boland
50fb6c1605
rename xbps_pkgver_is_reverted to xbps_pkg_reverts
2014-09-23 13:54:06 +02:00
Enno Boland
ebd614dff6
bin/xbps-rindex: take the revert field in account.
...
- if the user wants to add a package which is older than the
one in the index, xbps-rindex will check if the package
reverts the one on the index. If so the package will be added
regardless of its version
- if the user wants to add a package which is newer than the
one on the index, xbps-rindex will check if the package on the
index reverts the one the user wants to add. If so the package
will be skipped regardless of its version.
2014-09-23 13:54:06 +02:00
Enno Boland
33032429c2
bin/xbps-create: allow to define the reverts field for a package.
2014-09-23 13:54:06 +02:00
Christian Neukirchen
cfc0e3b9d9
xbps-create: do not compress with xz -9
...
xz -9 is very expensive in terms of CPU and memory usage, and also
memory usage for decompression. Thus we stick to default of -6 for
xz. For gzip and bzip2, -9 is ok.
2014-09-19 16:38:31 +02:00
Juan RP
f52eea34d4
xbps-install: abort transaction if there's insufficient disk space on rootdir.
...
The free disk space wasn't computed correctly and xbps-install(8) wasn't
handling ENOSPC rval in xbps_transaction_prepare().
2014-09-18 12:11:02 +02:00
Juan RP
20326738ed
bin/xbps-install/fetch_cb.c: optimize: only call isatty() once.
2014-09-18 10:21:24 +02:00
Juan RP
2550d3d006
xbps-query: do not print ANSI escape codes if stdout is not a tty.
2014-09-18 10:14:42 +02:00
Juan RP
f80df0fa22
xbps-{install,remove}: print guards in post-install/pre-remove messages.
...
This avoids the need to manually add them to the {INSTALL,REMOVE}.msg
files in binary packages, and saves some bytes in the repository archive
and binary packages.
Idea by @dominikh.
2014-09-16 09:58:27 +02:00
Juan RP
dee7852af8
xbps-rindex: fix -a/--add mode repodata archive permissions.
...
The repodata archive wasn't group writable, resulting in a new archive
created from scratch if the fd wasn't writable.
repodata archives are now created with 0664 mode, this way its main group
also can write to it.
2014-09-15 12:15:42 +02:00
Juan RP
567382c3a2
xbps-rindex: fix musl build: needs -lcrypto explicitly.
2014-09-14 20:01:05 +02:00
Juan RP
e902619220
Remove empty self replaced pkg arrays from pkgdb.
2014-09-14 18:16:43 +02:00
Juan RP
2b7c4d568a
Remove pkg self replacement from pkgdb; this must not be propagated.
2014-09-13 18:14:04 +02:00
Juan RP
411480e43d
pkgdb: repository-origin -> repository to match the repo pkg obj.
2014-09-13 10:49:13 +02:00
Juan RP
287665009b
Drop unused headers.
2014-09-13 08:54:12 +02:00
Juan RP
f26a9c1e2b
xbps-{install,query}.8: sync with reality.
2014-09-12 12:15:03 +02:00
Juan RP
39aca1bbc9
Implement shlib checks for all pkg revdeps in the transaction.
...
Added three new test cases to verify its correctness.
2014-09-12 11:49:34 +02:00
Juan RP
b306adf52b
bin/xbps-query/ownedby.c: take into account pkgs with no files.
2014-09-11 18:10:04 +02:00
Juan RP
dea7ea888e
bin/*/*.8: sync with reality.
2014-09-11 12:21:33 +02:00
Juan RP
f9d162e639
xbps-install: show "pkgname (curver -> newver)" in updates; requested by @chneukirchen.
2014-09-11 11:43:15 +02:00
Juan RP
e32f7f4909
xbps-pkgdb: unfix previous, pkg metafile must be internalized.
2014-09-11 08:04:51 +02:00
Juan RP
bd2bb98fa7
xbps-pkgdb: update for pkgdb-0.38.
2014-09-11 08:00:37 +02:00
Juan RP
ed67cad564
xbps-query(8): added local search mode support (-s [-p]).
2014-09-11 01:15:51 +02:00
Juan RP
01dbb968dd
Welcome pkgdb-0.38.
2014-09-11 00:12:12 +02:00
Juan RP
56ab438d3c
xbps-install: indentation.
2014-09-07 09:34:33 +02:00
Juan RP
05e7a59f03
xbps_handle: constify xbps_xxx_cb_data argument.
2014-09-06 09:46:03 +02:00
Juan RP
1a024773af
xbps-remove: use xbps_binpkg_{arch,pkgver} for -O (clean-cache).
...
The new implementation is almost 1s faster than before on my system.
2014-09-05 21:09:27 +02:00
Juan RP
d7d749312d
xbps-rindex: use xbps_binpkg_{arch,pkgver} for -r (remove-obsoletes).
...
This is magnituds faster than before; some results:
$ for f in 1 2 3; do time xbps-rindex -r /var/cache/xbps/ &>/dev/null; done
real 0m0.624s
user 0m2.163s
sys 0m0.032s
real 0m0.590s
user 0m2.159s
sys 0m0.023s
real 0m0.584s
user 0m2.144s
sys 0m0.039s
$ for f in 1 2 3; do time LD_PRELOAD=$PWD/lib/libxbps.so.2.0.0 ./bin/xbps-rindex/xbps-rindex -r /var/cache/xbps &>/dev/null; done
real 0m0.037s
user 0m0.030s
sys 0m0.010s
real 0m0.036s
user 0m0.032s
sys 0m0.007s
real 0m0.037s
user 0m0.035s
sys 0m0.006s
$
2014-09-05 21:07:07 +02:00
Juan RP
b73d40092c
xbps-uhelper: new targets: binpkgarch and binpkgver.
...
- binpkgarch: returns the architecture component of a xbps filename.
- binpkgver: returns the pkgver component of a xbps filename.
2014-09-05 21:06:06 +02:00
Juan RP
013731c502
Acquire/release a POSIX file lock on repository archives.
...
- xbps_repo_open() accepts a third argument (bool) to acquire a POSIX file
lock on the repository archive.
- xbps_repo_close() accepts a second argument (bool) to release a POSIX file
lock on the repository archive.
This avoids the issue of multiple xbps-rindex(8) processes being blocked
even for different repositories on the same architecture, resulting in
unnecessary contention.
2014-09-05 12:26:42 +02:00
Juan RP
bc92b387cb
Really fix #53 this time: with or without -n.
2014-08-23 16:25:51 +02:00
Juan RP
8939e8697d
bin/*/*.8: add missing End-List macros (.El).
2014-08-23 09:26:02 +02:00
Juan RP
c8c331bd9a
xbps-uchroot.8: document required kernel options.
2014-08-23 09:20:07 +02:00
Juan RP
74b3cb0e64
Only build/install xbps-uchroot(8) on linux.
2014-08-23 09:06:46 +02:00
Juan RP
1d2dabca09
xbps-query(8): fix --fulldeptree with pkgs that have multiple vpkgs.
2014-08-23 08:47:38 +02:00
Juan RP
4c14785480
Fix #53 (xbps-install with multiple arguments shouldn't fail if one is already installed).
2014-08-23 08:02:40 +02:00
Juan RP
0e745c29e8
xbps-install.8: clarify -ff behaviour.
2014-08-21 19:05:07 +02:00
Juan RP
3f22aca00c
xbps-query: fix an obvious tyop that broke -RX.
2014-08-19 16:59:25 +02:00
Juan RP
d7c7783ac2
xbps-query(8): added --fulldeptree to print a full dependency tree with -x.
...
This fixes the regression introduced in 0.37 with -xx; -xx is not supported
anymore, use `--fulldeptree -x`.
2014-08-19 13:14:37 +02:00
Juan RP
f83fed1ea6
Merge pull request #52 from Gottox/xdelta
...
support for fetching file deltas for repo_sync.
2014-08-13 21:38:35 +02:00
Enno Boland
80f4c2ed17
bin/xbps-uhelper/main.c: fix english. It's 'identical to' not 'identical than'
2014-08-12 08:09:47 +02:00
Enno Boland
64fe81d1bd
bin/xbps-uhelper/main.c: fetch accepts >=2 arguments, not only 2 arguments
2014-08-12 08:09:47 +02:00
Juan RP
c5d56bbf83
xbps-uchroot(8): do not remount / unnecessarily.
2014-08-12 07:53:59 +02:00
Enno Boland
89c1b88dfd
bin/xbps-uhelper: fix flags for xfetch
2014-08-11 19:24:33 +02:00
Enno Boland
040e114ad4
lib/download.c: add basic support for vcdiffs
2014-08-11 18:40:44 +02:00
Juan RP
c301cc32e5
xbps-query(8): -S mode prints keys with ANSI bold escape code.
2014-08-05 01:22:58 +02:00
Juan RP
0b116a0f3f
xbps-query(8): --search --property now works with <number> objects.
...
For example to find a package where its binpkg file is bigger than 1GB:
$ xbps-query --regex -s [0-9][0-9][0-9][0-9]MB -p filename-size
2014-08-02 12:11:28 +02:00
Juan RP
766cbcf683
xbps-remove(8): fix assertion when the cachedir is empty.
2014-08-02 10:00:54 +02:00