Juan RP
bdcdb9f1a0
xbps_fetch_file: don't check for file truncation if server answers with invalid info.
2013-02-01 13:40:27 +01:00
Juan RP
42e0f19bbe
Fix package conflicts detection (regression from b9136c61c9
).
2013-02-01 12:41:27 +01:00
Juan RP
9cf104498e
lib/initend.c: convert a noisy printf to dbg_printf.
2013-01-31 09:42:22 +01:00
Juan RP
7360a6fca3
Fix previous; only use arg0 in client cb.
2013-01-31 09:41:43 +01:00
Juan RP
d2178b70e3
xbps_rindex_sync: pass correct file to the state cb.
2013-01-31 09:33:06 +01:00
Juan RP
e75fcdd567
xbps_fetch_file: avoid copying from a NULL pointer.
2013-01-15 15:55:18 +01:00
Juan RP
3139f822da
lib/pkgdb.c: print to stderr a meaningful msg on error.
2013-01-15 13:14:30 +01:00
Juan RP
71430b1566
lib/initend.c: print to stderr a meaningfull msg on error.
2013-01-15 13:14:06 +01:00
Juan RP
b5bb1debe4
Partial revert of 5d59a15faf
.
...
Error out if "pre-remove" script action fails, otherwise package is
removed but its files are still there (ouch).
2013-01-14 14:01:35 +01:00
Juan RP
2f3913f3aa
lib/fetch/common.c: merge 2.34 and backport a patch for select(2) and SSL.
2013-01-13 21:09:15 +01:00
Juan RP
336897d964
xbps_fetch_file: simplify and use libfetch support for If-Modified-Since.
2013-01-13 16:27:59 +01:00
Juan RP
ea2f2c7297
Silence -Wformat-nonliteral warning with clang.
2013-01-04 10:35:00 +01:00
Juan RP
5d59a15faf
libxbps: even if executing a pre-remove action fails, continue removing pkg.
...
This is no reason to stop removing a pkg, so just continue and fully
remove the pkg.
2012-12-29 07:13:49 +01:00
Juan RP
0f22579a34
libxbps: fixed regression executing "pre-remove" action in installed pkgs.
2012-12-28 10:42:13 +01:00
Juan RP
9489f8a3dc
Do not configure pkg if there's an update in transaction.
...
This fixes the following problem:
- pkg is installed with state "unpacked".
- There's an update of pkg in transaction.
- xbps tries to configure the pkg because its state is "unpacked",
therefore ignoring the update.
2012-12-20 12:08:55 +01:00
Juan RP
66cf15f1c2
Update API docs.
2012-12-19 01:01:27 +01:00
Juan RP
6a60bceb54
xbps_configure_pkg: set pkg state in our pkg dictionary from pkgdb.
...
Replacing a dictionary while the iterator is held invalidates this iterator, thus
breaking the loop.
Thanks to pancake for finding this issue.
2012-12-17 11:27:10 +01:00
Juan RP
b75cd05c37
Use posix_fadvise(2) only if it's available.
2012-12-15 10:47:30 +01:00
Juan RP
5dab658d09
xbps_unpack_binary_pkg: use posix_fadvise(2).
2012-12-15 09:51:44 +01:00
Juan RP
e1fc085915
xbps_file_hash: use madvise(2).
2012-12-15 09:51:05 +01:00
Juan RP
4095290189
xbps_fetch_file: use O_CLOEXEC.
2012-12-15 09:50:37 +01:00
Juan RP
22adf99e40
Faster generation of dynamic reverse dependencies and do this exactly once.
2012-12-15 07:33:49 +01:00
Juan RP
1d42986b75
libxbps: finish support for rindex 1.6.
2012-12-07 17:11:52 +01:00
Juan RP
305659644f
xbps_rindex_sync: check that downloaded repo index is a dictionary.
2012-12-07 08:34:45 +01:00
Juan RP
3e3073e44c
xbps_rpool_init: relax an assertion and skip invalid repos gracefully.
2012-12-07 08:31:47 +01:00
Juan RP
2c1e4e502d
XBPS can now be built on NetBSD (and probably any other BSD variant).
2012-12-06 12:58:17 +01:00
Juan RP
2e2da80cfc
find_repo_deps: find pkgd from pkgdb by name as it checks for version later.
2012-12-02 16:34:01 +01:00
Juan RP
0e40a2dbba
xbps_pkgdb_get_pkg_revdeps: make sure to not have dup entries.
2012-12-01 08:10:47 +01:00
Juan RP
8c84e22b94
xbps_transaction_sort: do not sort removed pkgs; just add them to head.
2012-12-01 08:10:15 +01:00
Juan RP
f45352dbf8
Added support for dynamic generation of revdeps for installed packages.
2012-11-30 17:40:52 +01:00
Juan RP
731c903026
libxbps: do not insert/delete while traversing a (double) locked iterator.
2012-11-30 10:04:36 +01:00
Juan RP
b9136c61c9
Use prop iterators when needed to retain the obj.
...
This could explain the strange issues seen in buildbot builds that
have been happening since 0.18; this should fix completely this.
2012-11-30 09:49:09 +01:00
Juan RP
9715d8a6a1
rindex_pkgdeps.c: simplify and reduce (a bit).
2012-11-30 08:21:20 +01:00
Juan RP
8345070884
Bump libxbps soname major version.
2012-11-30 07:18:46 +01:00
Juan RP
63c1883201
Major API/ABI cleanup bringing performance improvements and fixes.
...
These are the core interfaces in the new API:
rpool - Interface to interact with the repository pool.
rindex - Interface to interact with repository indexes.
pkgdb - Interface to interact with local packages.
transaction - Interface to interact with a transaction.
This also brings new repository index format, making the index file
per architecture and being incompatible with previous versions.
The transaction frequency flush option has been removed, and due to
the nature of package states it was causing more harm than good.
More changes coming soon, but the API shall remain stable from now on.
2012-11-30 07:11:51 +01:00
Juan RP
16e18313da
xbps_transaction: return proper errors if pkg is missing from repos.
2012-11-28 17:35:03 +01:00
Juan RP
85c0641cc8
xbps_{configure,remove}_pkg: do not use meta cache when executing scripts.
...
This fixes executing INSTALL/REMOVE scripts with the right version currently
installed, i.e kernel post-install failed to execute correctly its kernel
hooks due to passing a wrong version.
2012-11-26 23:25:41 +01:00
Juan RP
7f577e005c
metadir: replace uthash simply with a dictionary.
2012-11-21 23:07:38 +01:00
Juan RP
bdd93b7aa7
Introduce xbps_pkgdb_get_virtualpkgd() and use in xbps_metadir_get_pkgd().
2012-11-19 21:46:54 +01:00
Juan RP
5de4fb1f0a
xbps-install: -f will also overwrite pkg files.
2012-11-19 20:50:58 +01:00
Juan RP
d92c87dbf3
xbps_fetch_file: don't error out if restart and tempfile doesn't exist.
2012-11-19 16:40:27 +01:00
Juan RP
a311294f0a
libxbps: added support to "inject" vpkg config files at initialization time.
2012-11-19 15:42:24 +01:00
Juan RP
4f9ff2746e
xbps_pkg_exec_buffer: chdir to rootdir before creating fd.
2012-11-19 14:59:42 +01:00
Juan RP
0edba07106
xbps_remove_pkg: fix dbg printf args.
2012-11-19 14:45:09 +01:00
Juan RP
34ae90f1c3
xbps_remove_pkg: force pkgdb flush after unregister.
2012-11-19 14:40:41 +01:00
Juan RP
e861cb5331
xbps_transaction_commit: add a dbg printf.
2012-11-19 14:38:06 +01:00
Juan RP
5397dd4937
xbps_remove_pkg: handle all cases where pkg meta plist is unavail.
2012-11-19 14:08:01 +01:00
Juan RP
1147e7ce3c
xbps_find_pkg_orphans: there's no need to check pkg state, any state is ok.
2012-11-19 14:07:05 +01:00
Juan RP
556bbd495e
xbps_remove_pkg: recover from an assertion if pkg meta plist doesn't exist.
2012-11-19 13:29:09 +01:00
Juan RP
bf2d97a067
xbps_init: simplify previous and use xbps_xasprintf().
2012-11-19 12:15:32 +01:00