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
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
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
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
Enno Boland
7b773032c4
README, configure: --with-tests is not supported. Use --enable-tests instead.
2014-09-22 21:03:02 +02: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
Enno Boland
4689b07b85
lib/repo_sync.c: use xbps_fetch_file_dest() instead of xbps_fetch_delta().
...
Until the generation of deltas does not work reliably just download
the repo files instead of trying to get the delta.
2014-09-11 11:39:54 +02:00
Enno Boland
858d226adc
NEWS: announce xdelta support
2014-08-12 09:47:36 +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
Enno Boland
8a992372ed
lib/repo_sync.c: use xbps_fetch_delta instead of xbps_fetch_file
2014-08-11 20:01:24 +02:00
Enno Boland
b0c090c39e
lib/download.c: delete vcdiffs after applying; cleanups.
2014-08-11 20:00:20 +02:00
Enno Boland
89c1b88dfd
bin/xbps-uhelper: fix flags for xfetch
2014-08-11 19:24:33 +02:00
Enno Boland
6a8f5d6235
lib/download.c: debug output for binary diffs
2014-08-11 19:24:02 +02:00
Enno Boland
f0f8534273
lib/download.c: use tempfile while decoding new file from binary diff.
...
this prevents corrupted files when filename == basefile.
2014-08-11 19:05:23 +02:00
Enno Boland
040e114ad4
lib/download.c: add basic support for vcdiffs
2014-08-11 18:40:44 +02:00
Enno Boland
e903731718
adding test for globbing nonexistent files.
2014-05-29 10:00:20 +02:00
Enno Boland
7485659687
libxbps: use strlcpy instead of strncpy
2014-05-13 11:58:51 +02:00
Enno Boland
f369c24e90
tests: use right name in copyright.
2014-05-13 11:47:57 +02:00
Enno Boland
93e6aada54
tests: remove unneccassary test script
2014-05-13 11:46:47 +02:00
Enno Boland
295cfcea76
libxbps: insert space after conditionals
2014-05-13 11:44:49 +02:00
Enno Boland
f4c0ecdcbf
using config_ prefix instead of xbps_conf_ for tests
2014-05-13 11:41:40 +02:00
Enno Boland
152ec0354f
libxbps: file including in xbps.conf supports relative paths.
2014-05-13 11:37:09 +02:00
Enno Boland
e5d64d6319
lib/initend.c: include now supports file globbing.
2014-05-05 23:10:18 +02:00
Enno Boland
8cdd242f85
xbps-uhelper fetch supports user defined output file
...
xbps-uhelper now supports downloading files with a defined destination.
The syntax of fetch is "URI>FILENAME". So if you call
xbps-uhelper fetch "http://foobar.com/foo.tar.gz >bar.tar.gz"
the output file will be named "bar.tar.gz"
2014-03-04 14:22:02 +01:00
Enno Boland
59ee6b6733
Adding xbps_fetch_file_dest().
...
This function is similiar to xbps_fetch_file(). In contrast to xbps_fetch_file()
xbps_fetch_file_dest has an extra paramenter which allow to define an output file
for the request.
2014-03-04 14:19:52 +01:00