Juan RP
a6699be973
xbps.h: bump XBPS_API_VERSION.
2014-08-13 21:39:39 +02:00
Juan RP
f83fed1ea6
Merge pull request #52 from Gottox/xdelta
...
support for fetching file deltas for repo_sync.
2014-08-13 21:38:35 +02:00
Juan RP
c5d56bbf83
xbps-uchroot(8): do not remount / unnecessarily.
2014-08-12 07:53:59 +02:00
Juan RP
c301cc32e5
xbps-query(8): -S mode prints keys with ANSI bold escape code.
2014-08-05 01:22:58 +02:00
Juan RP
0b116a0f3f
xbps-query(8): --search --property now works with <number> objects.
...
For example to find a package where its binpkg file is bigger than 1GB:
$ xbps-query --regex -s [0-9][0-9][0-9][0-9]MB -p filename-size
2014-08-02 12:11:28 +02:00
Juan RP
766cbcf683
xbps-remove(8): fix assertion when the cachedir is empty.
2014-08-02 10:00:54 +02:00
Juan RP
df93e790a6
xbps_init: performance: do not chdir() unnecessarily for each conf file.
2014-08-01 15:30:43 +02:00
Juan RP
f8d8f91a08
Implement support to "preserve" existent on-disk files.
...
See NEWS for more information. Fix #51
2014-08-01 15:09:51 +02:00
Juan RP
fa960c2425
xbps_init: print XBPS_RELVER in debug output.
2014-08-01 10:16:33 +02:00
Juan RP
04c7647492
lib/package_unpack.c: fix a typo that made modified files to not be unpacked.
2014-07-30 18:50:43 +02:00
Juan RP
cc6f9901f1
Fix #50 (Existent files on disk might be overwritten by packages with conf_files).
2014-07-30 16:18:57 +02:00
Juan RP
e92e86c2db
Share code to show pre-remove/post-install msgs.
2014-07-27 17:39:24 +02:00
Juan RP
b922241f89
data/_xbps_src: typo fix.
2014-07-27 11:36:18 +02:00
Juan RP
70818c09ee
NEWS: grammar.
2014-07-27 11:31:39 +02:00
Juan RP
a28046332f
Implemented support for pre-remove and post-install messages.
...
Close #44
2014-07-27 11:24:49 +02:00
Juan RP
53d837e69f
AUTHORS: add chneukirchen.
2014-07-23 15:50:23 +02:00
Juan RP
8392984742
Merge pull request #47 from chneukirchen/completion
...
Add zsh completion for xbps-* and xbps-src (from xbps-packages)
2014-07-22 18:48:58 +02:00
Juan RP
0a7ea3250a
lib/transaction_dictionary.c: fix rootdir free size on 32bit systems.
2014-07-18 12:44:32 +02:00
Juan RP
607f01b2f5
If statvfs() fails don't consider this a critical error; compute free space correctly.
2014-07-14 10:09:34 +02:00
Juan RP
38aba4ce60
xbps-install: fix previous of previous (heh).
2014-07-14 09:49:21 +02:00
Juan RP
314e345a5e
xbps-install: fix previous; only print pkgs that have "download" property.
2014-07-14 09:43:52 +02:00
Juan RP
26fca48da2
xbps-install(8): added support to list pkgs that will be downloaded from remote repos.
2014-07-14 09:30:28 +02:00
Juan RP
207e95c029
include/compat.h: fix musl build and include inttypes.h.
2014-07-14 08:50:14 +02:00
Juan RP
4356b6fd65
Abort transaction if there's not enough free space on disk.
...
Close #7 .
2014-07-13 11:45:04 +02:00
Juan RP
79fe312302
Gather proper transaction stats (take into account binpkgs in cachedir, and "preserved" pkgs).
2014-07-13 09:56:06 +02:00
Juan RP
ad28774f2f
bin/xbps-install/transaction.c: simplify.
2014-07-13 09:34:54 +02:00
Juan RP
20e5b07b8b
lib/package_conflicts.c: do not add dups unnecessarily.
2014-07-13 09:34:19 +02:00
Juan RP
d4f82b24f9
lib/repo_pkgdeps.c: conflicts are checked via xbps_transaction_prepare() already.
2014-07-12 16:27:21 +02:00
Juan RP
e35d2e9415
Revert "lib/transaction_ops.c: also check conflicts for pkgs without rdeps."
...
This reverts commit e308097af5 .
package conflicts are checked in xbps_transaction_prepare() already.
2014-07-12 16:25:12 +02:00
Juan RP
e308097af5
lib/transaction_ops.c: also check conflicts for pkgs without rdeps.
2014-07-12 09:41:37 +02:00
Juan RP
f5fe2c35c7
tests: new test for vpkgs to reproduce awk/base-system-busybox fallout.
...
This test currently fails and must be fixed.
2014-07-12 09:40:36 +02:00
Juan RP
b73fb67179
lib/repo_pkgdeps.c: print what dep has been added from repos (debug).
2014-07-12 09:40:07 +02:00
Juan RP
1857672e14
tests: add another test case for GH issue #45 .
...
The test passes completely and cannot be make to segfault in any provided case.
I'll continue investigating...
2014-07-08 16:34:47 +02:00
Juan RP
36ad783f07
xbps-query/search: handle vpkg matches into its own conditional; a small performance improvement.
2014-07-06 09:33:59 +02:00
Juan RP
0385812a5a
transaction_sort: if curdep == curpkg don't do any sorting, it's sorted already.
2014-07-06 09:32:06 +02:00
Juan RP
9349e5fc40
xbps-install/state_cb.c: do not treat XBPS_STATE_DOWNLOAD always as an error.
2014-07-03 08:33:37 +02:00
Juan RP
b63cc62e3d
lib/package_unpack.c: add some comments.
2014-07-02 11:30:41 +02:00
Juan RP
e60677116d
Fix #43 (xbps-install: unhelpful message for invalid dependency)
...
If a package that is going to be installed or updated contains invalid
dependencies return ENXIO and XBPS_STATE_INVALID_DEP xbps state to clients.
This improves the error messages returned to the clients when such
condition happens.
2014-07-02 10:59:25 +02:00
Juan RP
21f32a75c5
Fixed a new issue with vpkgs replacing the same vpkg they are providing.
...
Added a new testcase to verify its correctness.
2014-07-01 15:35:55 +02:00
Juan RP
510c84d3bb
libfetch: synchronized with NetBSD's pkgsrc/libfetch, preserving our changes.
2014-06-29 10:29:36 +02:00
Juan RP
be1ef74ba2
libfetch: merge NetBSD's common.c 1.29 too to reduce differences and fix a warning.
2014-06-29 10:04:07 +02:00
Juan RP
7bb36ddaa2
libfetch: fetch_close: make sure conn->ssl is valid before shutting down.
2014-06-28 12:12:03 +02:00
Juan RP
633c20a2e6
libfetch: merge TLS SNI support from NetBSD with some other random changes.
...
Close GH #41
2014-06-28 12:01:00 +02:00
Juan RP
32161d5dd9
Post release bump to 0.38.
2014-06-23 09:50:07 +02:00
Juan RP
96f36879a6
NEWS: prepare 0.37.
2014-06-06 15:52:08 +02:00
Juan RP
ae2fefeced
xbps_init: remove redundant dbg printf if xbps.conf cannot be read.
2014-06-04 10:49:39 +02:00
Juan RP
739a12a270
etc/xbps.conf: comment out dcron virtualpkg; we ship an empty config file now.
...
The system virtualpkg preferences must be set somewhere, this is not xbps' job.
2014-06-04 09:45:38 +02:00
Juan RP
6bb61adb0e
Enable syslog logging by default; updated API to use xbps_handle::flags.
2014-06-04 09:39:02 +02:00
Juan RP
dfab6cc441
data: install main repo file as 00-main.conf, so that it's processed earlier.
2014-06-04 08:06:46 +02:00
Juan RP
7f4753f50e
Process conf files in sys/conf foo.d dirs alphabetically.
2014-06-04 08:05:18 +02:00
Juan RP
a3c253d03c
xbps-query: check regcomp() return value.
2014-06-03 12:50:34 +02:00
Juan RP
776865b548
Added support for system/config virtualpkg.d directories.
...
The system virtualpkg directory set to <rootdir>/usr/share/xbps/virtualpkg.d contains
virtualpkg configuration files (.conf/.vpkg) that can be overrided by the admin
in <rootdir>/etc/xbps/virtualpkg.d bearing the same file name.
This obsoletes the "virtualpkgdir" keyword support from the xbps configuration file.
2014-05-31 07:05:57 +02:00
Juan RP
387987b146
Make system/config repo.d paths always relative to rootdir.
2014-05-31 06:44:07 +02:00
Juan RP
0953980d25
tests/xbps/xbps-rindex: explicitly set rootdir to unbreak tests.
2014-05-31 06:31:01 +02:00
Juan RP
ec3323dcba
lib/package_config_files.c: simplify.
2014-05-31 06:00:33 +02:00
Juan RP
9a0d595cca
etc/xbps.conf: comment out all repos and add some more details.
2014-05-30 12:00:10 +02:00
Juan RP
a5bc51b41f
Provide <prefix>/share/xbps/repo.d/main.conf - main void repository.
2014-05-30 11:54:12 +02:00
Juan RP
23fef46e9e
Implemented GH #39
...
The system repository directory set to <prefix>/share/xbps/repo.d contains
system repository configuration files (.conf) that can be overrided by the admin
in <sysconfdir>/xbps/repo.d bearing the same file name.
2014-05-30 11:48:10 +02:00
Juan RP
b9e44009d9
xbps-create(8): new option -t, --tags to store tags/categories metadata.
2014-05-29 11:36:39 +02:00
Juan RP
399a99753d
lib/initend.c: do not crash if the include keyword resolves to unexistent files.
2014-05-29 09:30:58 +02:00
Juan RP
19d36aaf04
portableproplib: use __attribute__((unused)) to fix a unused-but-set-variable warning.
2014-05-29 08:32:14 +02:00
Juan RP
9e1132c950
xbps-query.8: explain modes and accepted options a bit more detailed.
2014-05-27 12:01:48 +02:00
Juan RP
61a1d33995
xbps-install(8): implemented single pkg updates without -u, --update.
...
The -u, --update is now only necessary to perform full system updates.
Close #35 (https://github.com/voidlinux/xbps/issues/35 )
2014-05-27 11:33:45 +02:00
Juan RP
e1e5310428
tests: installmode: use -d to inspect stderr.
2014-05-27 11:15:40 +02:00
Juan RP
18e0524287
libxbps: optimize rootdir access/creation by checking/creating it only once.
2014-05-27 10:02:01 +02:00
Juan RP
91344451a3
xbps-query: another argc fixup.
2014-05-27 08:19:08 +02:00
Juan RP
ca8619dd57
xbps-query: fix fallout due to no_argument -> required_argument changes.
2014-05-26 18:05:30 +02:00
Juan RP
0ffc536b48
xbps-query: initialize some modes correctly; remove obsolete -D option.
2014-05-26 17:59:58 +02:00
Juan RP
f1cb7f43dc
xbps-query: fix arg[cv] logic added in previous.
2014-05-26 17:52:41 +02:00
Juan RP
0eadaab19d
xbps-query: added --regex to use EREs in ownedby and search modes.
...
This replaces previous -S, --search-regex option. The regex option
can now be used in the ownedby and search modes.
Also added -S, --show option which is the default mode if no other
mode set, and defaults to it to preserve compatibility.
2014-05-26 17:30:44 +02:00
Juan RP
0fbab93383
xbps-query/search.c: simplify regex matching code.
2014-05-26 08:36:33 +02:00
Juan RP
1f0605810c
xbps-query: added -S, --search-regex to match EREs against pkg props in repos.
2014-05-25 11:03:31 +02:00
Juan RP
1c26b2ef95
tests: new tests to verify pkg install order with real and virtual pkgs.
2014-05-22 13:44:35 +02:00
Juan RP
889e5d665e
Improve 869466278b even more; it detects installs/updates correctly now.
2014-05-22 12:19:35 +02:00
Juan RP
ac5aa94e58
lib/package_config_files.c: avoid many small heap allocs and simplify.
2014-05-22 10:52:57 +02:00
Juan RP
e2b0de8859
tests/xbps/libxbps/shell/remove_test.sh: use -d arg to see what's going on.
2014-05-22 10:49:17 +02:00
Juan RP
0e7e2c0148
lib/package_remove.c: typo fix.
2014-05-22 10:49:01 +02:00
Juan RP
350852bf76
lib/package_remove.c: avoid many small heap allocs and simplify.
2014-05-22 10:42:27 +02:00
Juan RP
0f95cf4e46
lib/package_find_obsoletes.c: avoid many heap allocs and simplify.
2014-05-22 10:41:31 +02:00
Juan RP
ea234f095f
xbps_transaction_init: small memleaks found by valgrind.
2014-05-22 10:41:07 +02:00
Juan RP
d94995eb5a
Improve 869466278b for non virtual packages.
...
If dependency is installed but does not satisfy the requirements, mark it
as an update and not install. The commit 869466278b changed the logic
for virtual and non virtual packages.
2014-05-18 14:24:59 +02:00
Juan RP
cafbca06e7
Imported portableproplib-0.6.4.
2014-05-17 20:25:14 +02:00
Juan RP
a3f2898ea6
Explicitly set errno to ENOENT when a pkg hasn't been found in array/dictionaries.
2014-05-17 12:36:02 +02:00
Juan RP
db0b69b397
tests/xbps/libxbps/config: fix clang warning: strncat() needs an additional byte for NUL.
2014-05-16 09:51:58 +02:00
Juan RP
6b83ec7039
xbps-create: initialize two vars to make gcc-4.9 with -fstack-protector-strong happy.
2014-05-16 09:47:35 +02:00
Juan RP
869466278b
Fixed a new issue with virtual packages, as reported by Gottox.
2014-05-15 22:07:10 +02:00
Juan RP
ae70e2c7f4
xbps-uchroot: fixed clang warnings.
2014-05-15 17:05:11 +02:00
Juan RP
f7d1ed6ae3
lib/initend.c: fix clang warning; no need to initialize partially glob_t.
2014-05-15 17:00:29 +02:00
Juan RP
ccc5a29a27
xbps-pkgdb/check_pkg_symlinks: avoid many small allocations and fix a small memleak.
2014-05-13 22:54:43 +02:00
Juan RP
5879d57c8e
Misc tweaks to authors/copyright.
2014-05-13 12:22:12 +02:00
Juan RP
7a4e6862cd
tests: recurse into the new config tests.
2014-05-13 12:14:34 +02:00
Juan RP
8920149a06
Merge pull request #38 from Gottox/master
...
libxbps: use strlcpy instead of strncpy
2014-05-13 12:03:27 +02:00
Juan RP
99154d5252
Merge pull request #37 from Gottox/master
...
libxbps: file including in xbps.conf supports relative paths.
2014-05-13 11:49:40 +02:00
Juan RP
4070255529
pkgdb: added "repository-origin" obj to know its origin repository.
2014-05-11 10:03:17 +02:00
Juan RP
26c1e80933
xbps-remove(8): -n,--dry-run option does not need pkgdb write perms anymore.
2014-05-06 16:25:52 +02:00
Juan RP
bbae14f187
xbps-remove(8): -O,--clean-cache is now multithreaded.
2014-05-06 12:17:18 +02:00
Juan RP
6c8a073fb2
tests: new test for xbps-query(8) -Rf when binpkg is not available.
2014-05-06 11:16:00 +02:00
Juan RP
1e273bf575
lib/initend.c: move prototype to the correct place.
2014-05-06 10:21:44 +02:00
Juan RP
c119c5e0bb
NEWS: mention recent change made by Gottox.
2014-05-06 09:29:29 +02:00
Juan RP
42a569b05c
lib/initend.c: add Enno Boland to copyright.
2014-05-06 09:29:26 +02:00