Enno Boland
fe0e2fe6ce
README.md: document how to properly run the test suite
2014-09-29 10:11:58 +02:00
Enno Boland
0c27c66d2a
tests: correct test description.
2014-09-29 08:57:12 +02:00
Enno Boland
06cc3600f4
tests: remove useless LD_PRELOAD=
2014-09-29 08:52:35 +02:00
Enno Boland
f50a5df3c2
tests: add test case for reverts which simulates a full workflow.
2014-09-28 22:22:56 +02:00
Enno Boland
42f0152dce
trans_find_pkg(): search for reverts match with correct pkgver
2014-09-28 22:22:20 +02:00
Juan RP
2711b07b77
Fix package files removal with only read bit set.
...
The previous code was checking incorrectly if the file had the write
bit set, and this is wrong because a package could have files with
only the read bit set (0444).
2014-09-28 13:33:15 +02:00
Juan RP
2a89552375
tests: new test to verify pkg files removal with files that only have read bit set.
...
This currently fails but will be fixed in an upcoming change.
2014-09-28 13:28:56 +02:00
Juan RP
ef7e8bdfe3
xbps-query.8: mdoc fix.
2014-09-28 09:29:08 +02:00
Juan RP
2dc92ab966
tests: enable xbps-checkvers tests added by @Gottox.
2014-09-27 22:57:44 +02:00
Enno Boland
4fda229efb
xbps-checkvers: add tests.
2014-09-27 20:51:21 +02:00
Enno Boland
7e47614b4d
bin/xbps-checkvers: take reverts field in account
2014-09-27 20:51:21 +02:00
Juan RP
0f5ce62ba9
xbps-create: fix build introduced in previous.
2014-09-27 13:11:43 +02:00
Juan RP
72cefcfc83
Introduce xbps_mmap_file() and use it in strategic points.
...
Rather than using a random buffer from stack or heap, and decide
what size to use, create a private memory mapped object...
This simplifies the code in lib/verifysig.c and xbps-create.
2014-09-27 13:00:34 +02:00
Juan RP
ba0cdabe1e
bin/xbps-pkgdb/check.c: fix assertion due to double free.
2014-09-27 12:22:13 +02:00
Juan RP
97045960f9
xbps_pkg_reverts: style.
2014-09-27 11:28:29 +02:00
Enno Boland
2fe65dccec
rename xbps-packages to void-packages
2014-09-26 14:24:06 +02:00
Enno Boland
09bf6646d1
.gitignore: add vim tempfiles.
2014-09-23 21:24:14 +02:00
Juan RP
60723ab851
Remove vim backup file (hi @Gottox)
2014-09-23 21:21:11 +02:00
Enno Boland
b5a169b65c
xbps_pkg_reverts: this function can do more than just return false!
2014-09-23 21:18:47 +02:00
Enno Boland
f7a5d459d7
Merge pull request #61 from Gottox/revert
...
Allow automatic downgrading
2014-09-23 21:11:24 +02:00
Enno Boland
162845023e
NEWS: correct reverts description.
2014-09-23 21:05:28 +02:00
Enno Boland
66e697ffc4
NEWS: explain new reverts field.
2014-09-23 21:00:24 +02:00
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