Commit Graph

2344 Commits

Author SHA1 Message Date
Enno Boland
2adcf485b5 xbps.h: bump XBPS_API_VERSION. 2014-09-23 20:52:24 +02:00
Enno Boland
b5f357bd5e bin/xbps-create: update manpage. 2014-09-23 20:50:59 +02:00
Enno Boland
a421bf7db5 xbps_pkg_reverts: return bool instead of int. 2014-09-23 20:50:34 +02:00
Enno Boland
0c333d574b include/xbps.h.in: sync doc with reality 2014-09-23 19:28:22 +02:00
Enno Boland
4467518329 bin/xbps-rindex: add unit tests to test rindex behavior for adding packages with reverts. 2014-09-23 19:17:31 +02:00
Enno Boland
78203c1735 bin/xbps-rindex: fix adding packages with reverts. 2014-09-23 19:14:45 +02:00
Enno Boland
511fdc4215 xbps_pkg_reverts: add unit tests to test this functionality. 2014-09-23 18:26:03 +02:00
Enno Boland
dbab3f2cfc xbps_pkg_reverts: use version instead of pkgname-version to find reverts 2014-09-23 18:22:57 +02:00
Enno Boland
50fb6c1605 rename xbps_pkgver_is_reverted to xbps_pkg_reverts 2014-09-23 13:54:06 +02:00
Enno Boland
cd9a9e78a8 lib/transaction_ops.c: trans_find_pkg will check the revert field too.
- if a package on the repo has a lower version than installed
  libxbps will check if this package reverts the one installed
  and downgrades to it if so.
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
18204aeac1 lib/util.c: add function which tests if a given pkgver is reverted by a given pkg. 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
Enno Boland
13e3e74863 README.md: fix wrong backtick to end code segment. 2014-09-23 13:53:38 +02:00
Enno Boland
491d45f771 README.md: describe how to run a test. 2014-09-23 13:39:38 +02:00
Enno Boland
eee58921bc README.md: break lines to fit in 80 cols. 2014-09-23 13:39:38 +02:00
Juan RP
202ab0d375 NEWS: mention recent changes. 2014-09-23 09:42:20 +02:00
Enno Boland
7b773032c4 README, configure: --with-tests is not supported. Use --enable-tests instead. 2014-09-22 21:03:02 +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
1d8777b6f4 README: remove redundant word from previous. 2014-09-18 22:13:30 +02:00
Juan RP
0a0a41e4e9 README: update. 2014-09-18 22:10:14 +02:00
Juan RP
25832da045 Merge pull request #59 from uggedal/bash-completion-fixes
Bash completion fixes
2014-09-18 21:49:41 +02:00
Eivind Uggedal
487b7296c6 data/xbps.bash: use installed packages in non-repo query completion. 2014-09-18 19:45:58 +00:00
Eivind Uggedal
0f73158ed8 data/xbps.bash: shorten argument comparisons 2014-09-18 19:44:31 +00:00
Enno Boland
5bbcdf2c62 lib/util_hash.c: enlarge read buffer for xbps_file_hash to increase performance. 2014-09-18 18:34:15 +02:00
Juan RP
c51d0fcbd8 Post release bump. 2014-09-18 17:29:10 +02:00
Juan RP
15e416dc59 NEWS: prepare 0.40. 2014-09-18 17:25:56 +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
3b88cbb025 NEWS: mention zsh changes by @chneukirchen. 2014-09-17 18:57:01 +02:00
Christian Neukirchen
21a4473f7a _xbps: drop use of sed 2014-09-17 18:56:17 +02:00
Christian Neukirchen
5cbfdd5c5c _xbps: complete properties 2014-09-17 18:56:17 +02:00
Juan RP
741f8fbe04 lib/util_hash.c: update copyright year. 2014-09-17 07:24:00 +02:00
Juan RP
72c64c7626 xbps_file_hash: reduce memory footprint and process file in small chunks.
With xbps-rindex(8) -c/-r being multithreaded, the memory usage was
insanely high in the build server, with peaks of almost 4GB (this depends
on the file size being processed and number of threads).

Process the file in small chunks instead to compute the SHA256 hash.
2014-09-17 06:50:46 +02:00
Juan RP
94b9455175 NEWS: another change. 2014-09-16 09:58:27 +02:00
Juan RP
fe6d79fa46 NEWS: mention recent changes. 2014-09-16 09:58:27 +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
e3b76ac30a Merge pull request #58 from uggedal/bash-completion-extra-properties
data/xbps.bash: add more xbps-query properties.
2014-09-16 09:43:49 +02:00
Juan RP
6894980983 lib/package_msg.c: fix a heap overflow (noticed by @Gottox). 2014-09-16 09:13:32 +02:00
Eivind Uggedal
4ab8bbc5a8 data/xbps.bash: add more xbps-query properties. 2014-09-15 16:28:33 +00:00
Juan RP
3efd345e84 Post release bump. 2014-09-15 12:47:01 +02:00
Juan RP
d1a1f00ca0 NEWS: prepare 0.39. 2014-09-15 12:45:56 +02:00
Juan RP
e4484133a6 NEWS: mention musl build fix. 2014-09-15 12:26:17 +02:00
Juan RP
6d4b326b13 NEWS: mention recent changes. 2014-09-15 12:25:39 +02:00
Christian Neukirchen
73935efeb7 _xbps: update zsh completion for 0.38 2014-09-15 12:24:02 +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
3f7e98235c Merge pull request #57 from uggedal/bash-completion-props
data/xbps.bash: add property completion.
2014-09-15 09:48:04 +02:00
Juan RP
b54b0324a1 Merge pull request #56 from uggedal/bash-completion-0.38
data/xbps.bash: fix listing of all packages with 0.38.
2014-09-15 09:47:42 +02:00
Eivind Uggedal
ea88940b84 data/xbps.bash: add property completion. 2014-09-15 07:24:01 +00:00