607f01b2f5
If statvfs() fails don't consider this a critical error; compute free space correctly.
2014-07-14 10:09:34 +02:00
26fca48da2
xbps-install(8): added support to list pkgs that will be downloaded from remote repos.
2014-07-14 09:30:28 +02:00
4356b6fd65
Abort transaction if there's not enough free space on disk.
...
Close #7 .
2014-07-13 11:45:04 +02:00
79fe312302
Gather proper transaction stats (take into account binpkgs in cachedir, and "preserved" pkgs).
2014-07-13 09:56:06 +02:00
20e5b07b8b
lib/package_conflicts.c: do not add dups unnecessarily.
2014-07-13 09:34:19 +02:00
d4f82b24f9
lib/repo_pkgdeps.c: conflicts are checked via xbps_transaction_prepare() already.
2014-07-12 16:27:21 +02:00
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
e308097af5
lib/transaction_ops.c: also check conflicts for pkgs without rdeps.
2014-07-12 09:41:37 +02:00
b73fb67179
lib/repo_pkgdeps.c: print what dep has been added from repos (debug).
2014-07-12 09:40:07 +02:00
0385812a5a
transaction_sort: if curdep == curpkg don't do any sorting, it's sorted already.
2014-07-06 09:32:06 +02:00
b63cc62e3d
lib/package_unpack.c: add some comments.
2014-07-02 11:30:41 +02:00
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
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
510c84d3bb
libfetch: synchronized with NetBSD's pkgsrc/libfetch, preserving our changes.
2014-06-29 10:29:36 +02:00
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
7bb36ddaa2
libfetch: fetch_close: make sure conn->ssl is valid before shutting down.
2014-06-28 12:12:03 +02:00
633c20a2e6
libfetch: merge TLS SNI support from NetBSD with some other random changes.
...
Close GH #41
2014-06-28 12:01:00 +02:00
ae2fefeced
xbps_init: remove redundant dbg printf if xbps.conf cannot be read.
2014-06-04 10:49:39 +02:00
6bb61adb0e
Enable syslog logging by default; updated API to use xbps_handle::flags.
2014-06-04 09:39:02 +02:00
7f4753f50e
Process conf files in sys/conf foo.d dirs alphabetically.
2014-06-04 08:05:18 +02:00
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
387987b146
Make system/config repo.d paths always relative to rootdir.
2014-05-31 06:44:07 +02:00
ec3323dcba
lib/package_config_files.c: simplify.
2014-05-31 06:00:33 +02:00
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
399a99753d
lib/initend.c: do not crash if the include keyword resolves to unexistent files.
2014-05-29 09:30:58 +02:00
19d36aaf04
portableproplib: use __attribute__((unused)) to fix a unused-but-set-variable warning.
2014-05-29 08:32:14 +02:00
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
18e0524287
libxbps: optimize rootdir access/creation by checking/creating it only once.
2014-05-27 10:02:01 +02:00
889e5d665e
Improve 869466278b
even more; it detects installs/updates correctly now.
2014-05-22 12:19:35 +02:00
ac5aa94e58
lib/package_config_files.c: avoid many small heap allocs and simplify.
2014-05-22 10:52:57 +02:00
0e7e2c0148
lib/package_remove.c: typo fix.
2014-05-22 10:49:01 +02:00
350852bf76
lib/package_remove.c: avoid many small heap allocs and simplify.
2014-05-22 10:42:27 +02:00
0f95cf4e46
lib/package_find_obsoletes.c: avoid many heap allocs and simplify.
2014-05-22 10:41:31 +02:00
ea234f095f
xbps_transaction_init: small memleaks found by valgrind.
2014-05-22 10:41:07 +02:00
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
cafbca06e7
Imported portableproplib-0.6.4.
2014-05-17 20:25:14 +02:00
a3f2898ea6
Explicitly set errno to ENOENT when a pkg hasn't been found in array/dictionaries.
2014-05-17 12:36:02 +02:00
869466278b
Fixed a new issue with virtual packages, as reported by Gottox.
2014-05-15 22:07:10 +02:00
f7d1ed6ae3
lib/initend.c: fix clang warning; no need to initialize partially glob_t.
2014-05-15 17:00:29 +02:00
7485659687
libxbps: use strlcpy instead of strncpy
2014-05-13 11:58:51 +02:00
295cfcea76
libxbps: insert space after conditionals
2014-05-13 11:44:49 +02:00
152ec0354f
libxbps: file including in xbps.conf supports relative paths.
2014-05-13 11:37:09 +02:00
4070255529
pkgdb: added "repository-origin" obj to know its origin repository.
2014-05-11 10:03:17 +02:00
1e273bf575
lib/initend.c: move prototype to the correct place.
2014-05-06 10:21:44 +02:00
42a569b05c
lib/initend.c: add Enno Boland to copyright.
2014-05-06 09:29:26 +02:00
e5d64d6319
lib/initend.c: include now supports file globbing.
2014-05-05 23:10:18 +02:00
96778da60c
libxbps: detect and fix pkgs that depend on itself.
2014-04-20 18:17:23 +02:00
bb491e2667
libxbps: detect and ignore incorrect deps of a pkg if those are virtual pkgs.
2014-04-20 16:54:50 +02:00
dacbb2f22f
Fixed some warnings reported by clang.
2014-04-20 10:02:54 +02:00
ada3483acc
lib/repo.c: fix two memleaks in error paths found by clang.
2014-04-19 16:07:29 +02:00