Juan RP
96a117c558
lib/repo_pkgdeps.c: fix a double free in error branch (CID 62754)
2014-10-05 07:09:40 +02:00
Juan RP
f98343e183
README: added coverity scan image.
2014-10-04 22:14:32 +02:00
Juan RP
83c981884c
bin/xbps-query/show-deps.c: initialize a var to make gcc-4.6 happy.
2014-10-04 22:08:07 +02:00
Juan RP
8f25116d54
bin/xbps-install/main.c: rename a var to make gcc-4.6 happy.
2014-10-04 22:05:33 +02:00
Juan RP
bc9ddcfcc8
lib/initend.c: rename a var to make gcc-4.6.x happy.
2014-10-04 22:02:56 +02:00
Juan RP
2fe35a5bf3
lib/package_unpack.c: do not initialize xucd at all, unnecessary.
...
Initializing with {0} wasn't understood with gcc-4.6.x on travis-ci,
so just remove it.
2014-10-04 21:59:47 +02:00
Juan RP
4d0fc58bf3
travis: add missing bdeps.
2014-10-04 21:56:20 +02:00
Juan RP
9aeb879063
README: add a travis-ci build status image.
2014-10-04 21:52:46 +02:00
Juan RP
45891faee4
Added a basic travis-ci conf file.
2014-10-04 21:51:08 +02:00
Juan RP
966718bb7d
bin/*/*.8: fixed mdoc errors/warnings reported by mandoc -Wall.
2014-09-30 11:36:08 +02:00
Juan RP
dcec04a00f
Post release bump.
2014-09-29 15:55:12 +02:00
Juan RP
f7841f98eb
NEWS: prepare 0.41.
2014-09-29 15:54:15 +02:00
Juan RP
df71b40968
NEWS: mention last bugfix.
2014-09-29 15:50:56 +02:00
Juan RP
742af69185
Fix libxbps/update_shlibs:shlib_bump_revdep_diff test.
...
How to reproduce it:
- A-1.0_1 provides liba.so.1
- B-1.0_1 provides libb.so.1
- C-1.0_1 requires liba.so.1 and libb.so.1
- A-2.0_1 provides liba.so.2
- C-2.0_1 required liba.so.2
This test case failed because it was checking the required shared libraries
from current installed package, rather than the updated pkg in transaction.
2014-09-29 15:25:09 +02:00
Juan RP
43b450d6fb
tests: new test to verify another shlibs revdep case (currently it fails).
2014-09-29 14:56:32 +02:00
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