Commit Graph

2232 Commits

Author SHA1 Message Date
dd851f18a2 lib/package_unpack.c: zero out struct (CID 62755) 2014-10-05 07:12:30 +02:00
96a117c558 lib/repo_pkgdeps.c: fix a double free in error branch (CID 62754) 2014-10-05 07:09:40 +02:00
f98343e183 README: added coverity scan image. 2014-10-04 22:14:32 +02:00
83c981884c bin/xbps-query/show-deps.c: initialize a var to make gcc-4.6 happy. 2014-10-04 22:08:07 +02:00
8f25116d54 bin/xbps-install/main.c: rename a var to make gcc-4.6 happy. 2014-10-04 22:05:33 +02:00
bc9ddcfcc8 lib/initend.c: rename a var to make gcc-4.6.x happy. 2014-10-04 22:02:56 +02:00
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
4d0fc58bf3 travis: add missing bdeps. 2014-10-04 21:56:20 +02:00
9aeb879063 README: add a travis-ci build status image. 2014-10-04 21:52:46 +02:00
45891faee4 Added a basic travis-ci conf file. 2014-10-04 21:51:08 +02:00
966718bb7d bin/*/*.8: fixed mdoc errors/warnings reported by mandoc -Wall. 2014-09-30 11:36:08 +02:00
dcec04a00f Post release bump. 2014-09-29 15:55:12 +02:00
f7841f98eb NEWS: prepare 0.41. 2014-09-29 15:54:15 +02:00
df71b40968 NEWS: mention last bugfix. 2014-09-29 15:50:56 +02:00
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
43b450d6fb tests: new test to verify another shlibs revdep case (currently it fails). 2014-09-29 14:56:32 +02:00
fe0e2fe6ce README.md: document how to properly run the test suite 2014-09-29 10:11:58 +02:00
0c27c66d2a tests: correct test description. 2014-09-29 08:57:12 +02:00
06cc3600f4 tests: remove useless LD_PRELOAD= 2014-09-29 08:52:35 +02:00
f50a5df3c2 tests: add test case for reverts which simulates a full workflow. 2014-09-28 22:22:56 +02:00
42f0152dce trans_find_pkg(): search for reverts match with correct pkgver 2014-09-28 22:22:20 +02:00
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
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
ef7e8bdfe3 xbps-query.8: mdoc fix. 2014-09-28 09:29:08 +02:00
2dc92ab966 tests: enable xbps-checkvers tests added by @Gottox. 2014-09-27 22:57:44 +02:00
4fda229efb xbps-checkvers: add tests. 2014-09-27 20:51:21 +02:00
7e47614b4d bin/xbps-checkvers: take reverts field in account 2014-09-27 20:51:21 +02:00
0f5ce62ba9 xbps-create: fix build introduced in previous. 2014-09-27 13:11:43 +02:00
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
ba0cdabe1e bin/xbps-pkgdb/check.c: fix assertion due to double free. 2014-09-27 12:22:13 +02:00
97045960f9 xbps_pkg_reverts: style. 2014-09-27 11:28:29 +02:00
2fe65dccec rename xbps-packages to void-packages 2014-09-26 14:24:06 +02:00
09bf6646d1 .gitignore: add vim tempfiles. 2014-09-23 21:24:14 +02:00
60723ab851 Remove vim backup file (hi @Gottox) 2014-09-23 21:21:11 +02:00
b5a169b65c xbps_pkg_reverts: this function can do more than just return false! 2014-09-23 21:18:47 +02:00
f7a5d459d7 Merge pull request #61 from Gottox/revert
Allow automatic downgrading
2014-09-23 21:11:24 +02:00
162845023e NEWS: correct reverts description. 2014-09-23 21:05:28 +02:00
66e697ffc4 NEWS: explain new reverts field. 2014-09-23 21:00:24 +02:00
2adcf485b5 xbps.h: bump XBPS_API_VERSION. 2014-09-23 20:52:24 +02:00
b5f357bd5e bin/xbps-create: update manpage. 2014-09-23 20:50:59 +02:00
a421bf7db5 xbps_pkg_reverts: return bool instead of int. 2014-09-23 20:50:34 +02:00
0c333d574b include/xbps.h.in: sync doc with reality 2014-09-23 19:28:22 +02:00
4467518329 bin/xbps-rindex: add unit tests to test rindex behavior for adding packages with reverts. 2014-09-23 19:17:31 +02:00
78203c1735 bin/xbps-rindex: fix adding packages with reverts. 2014-09-23 19:14:45 +02:00
511fdc4215 xbps_pkg_reverts: add unit tests to test this functionality. 2014-09-23 18:26:03 +02:00
dbab3f2cfc xbps_pkg_reverts: use version instead of pkgname-version to find reverts 2014-09-23 18:22:57 +02:00
50fb6c1605 rename xbps_pkgver_is_reverted to xbps_pkg_reverts 2014-09-23 13:54:06 +02:00
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
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
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