Juan RP
3f9477417b
xbps_set_cb_xxx: simplify by using vars on the stack.
2012-01-20 12:29:14 +01:00
Juan RP
d075411049
Improve API documentation round 1.
2012-01-20 12:17:27 +01:00
Juan RP
6057bd83b3
Update pkgdb dot file with latest changes.
2012-01-20 11:16:07 +01:00
Juan RP
8d23ace0da
Rename lib/regpkgdb_dictionary.c to lib/pkgdb.c.
2012-01-20 11:12:53 +01:00
Juan RP
6940505de9
regpkgdb rototill: renamed to pkgdb, improve the public API.
2012-01-20 11:10:52 +01:00
Juan RP
9a088937b5
Repository index 1.4 -- see NEWS file for info.
2012-01-19 12:26:40 +01:00
Juan RP
dfc7ff4232
API break: simplify xbps_repository_pool_find_virtualpkg().
2012-01-18 08:25:28 +01:00
Juan RP
d0e1477eeb
Simplify xbps_end() and don't continue if xbps_init() did not succeed.
2012-01-17 16:56:17 +01:00
Juan RP
f2b05d6438
Improved pkg best matching in rpool, and support for exact pkgver matches.
...
- xbps_repository_pool_find_pkg in best match case, now returns the
newest package version available in rpool.
- Added xbps_repository_pool_find_pkg_exact that returns a package
by exact matching a pkgver.
- Removed xbps_handle_alloc(), the user is free to use memory
allocated from heap or stack.
- Improved API documentation in preparation for 0.12.
Bumped XBPS_API_VERSION again.
2012-01-17 16:17:03 +01:00
Juan RP
beb7284681
xbps-repo: faster 'genindex' target implementation for index-files.plist.
2012-01-17 10:50:35 +01:00
Juan RP
4164573b35
Added xbps_match_pkgdep_in_array() to match a pkgdep against pkgpatterns.
...
This fixes xbps_match_pkgpattern_in_array() which had the args swapped
in xbps_pkgpattern_match() resulting in inverted results while resolving
virtual packages in a transaction.
2012-01-16 15:50:06 +01:00
Juan RP
ffa48b2cf3
Fix xbps_configure_packages() by avoiding proplib iterators.
2012-01-16 14:41:16 +01:00
Juan RP
233d9f4803
Do not treat repositories with trailing '/' chars as invalid.
2012-01-15 17:23:50 +01:00
Juan RP
2186e16a5e
Fixed issue 21 "xbps-repo find-files
is awfully slow" reported by ojab.
2012-01-15 14:24:44 +01:00
Juan RP
0356afba6d
Bump copyright year for latest changes.
2012-01-05 16:17:37 +01:00
Juan RP
c83a77c1b5
Fixed issue 19 "xbps-src cannot fetch source with unknown Content-Length".
2012-01-05 12:26:57 +01:00
Juan RP
ab6d4a19f1
xbps_configure_packages: fix flush arg confusion.
2012-01-04 17:59:49 +01:00
Juan RP
a7ef059673
Bump copyright year for changed files.
2012-01-04 17:56:52 +01:00
Juan RP
a31c20e52a
Make xbps_configure_pkg/packages accept a flush bool arg for frontends.
2012-01-04 17:41:36 +01:00
Juan RP
812005a7d9
libxbps: use vpkg if found in reqby_pkg_add.
2012-01-04 17:41:22 +01:00
Juan RP
bae664c639
xbps_match_pkgpattern_in_array: fix swapped args resulting in non matches.
2011-12-29 16:35:56 +01:00
Juan RP
0d44ae267c
xbps_init: print xhp->conffile if set in a dbg printf.
2011-12-29 10:57:24 +01:00
Juan RP
f4f995574c
xbps_remove_pkg_from_dict_by_name: make this work correctly again.
2011-12-28 09:44:25 +01:00
Juan RP
caaba09295
xbps_register_pkg: fix by adding pkgd into regpkgdb array.
2011-12-28 09:21:01 +01:00
Juan RP
a7f3a56e19
Make xbps_(un)register_pkg() accept a boolean arg to flush regpkgdb on success.
2011-12-28 05:57:04 +01:00
Juan RP
b64fb39701
xbps_remove_pkg_from_dict_by_name: simplify.
2011-12-24 16:37:25 +01:00
Juan RP
5a1ab26972
Introduce xbps_regpkgdb_remove_pkgd, and use regpkgdb funcs to make xbps-uhelper work.
2011-12-24 16:09:30 +01:00
Juan RP
39d064aff8
xbps_unpack_binary_pkg: handle EPERM more efficiently.
2011-12-24 12:07:30 +01:00
Juan RP
9d767f19cb
xbps_remove_pkg: issue a XBPS_STATE_REMOVE_FAIL state cb if access(2) failed.
2011-12-24 01:30:57 +01:00
Juan RP
3b7491d29b
Merged purge code in remove, configurable transaction regpkgdb flushing.
...
See the NEWS file for info.
2011-12-24 01:05:26 +01:00
Juan RP
d7a32a7eca
Introduce regpkgdb_foreach_reverse_pkg_cb, switch to regpkgdb_foreach_xxx.
2011-12-23 08:16:25 +01:00
Juan RP
36c79fc167
xbps_handle_alloc: use calloc to avoid using unitilizated value.
2011-12-22 21:47:32 +01:00
Juan RP
ca0905925f
xbps_end: don't continue if we don't have a valid xbps_handle pointer.
2011-12-22 16:55:35 +01:00
Juan RP
3d81d497bd
Redo xbps_repository_pool internals, it's a bit faster now.
2011-12-22 16:38:05 +01:00
Juan RP
7bfcdee791
Introduce xbps_regpkgdb_foreach_pkg_cb() and use it in xbps-bin check.
2011-12-22 14:25:27 +01:00
Juan RP
b232ca1815
libxbps: cache regpkgdb just when it's needed not via xbps_init().
2011-12-22 12:56:56 +01:00
Juan RP
8fd5253e31
xbps_repository_pool_init: check repo arch before plist access(2), faster.
2011-12-22 12:56:49 +01:00
Juan RP
5a892023f4
Be a bit more paranoid by checking allocs and expected types.
2011-12-22 08:23:11 +01:00
Juan RP
866c395d12
Simplify xbps_repository_pool_find_xxx.
2011-12-19 14:22:19 +01:00
Juan RP
c40c40e08e
Always preserve current conffiles while installing new packages.
2011-12-19 11:20:27 +01:00
Juan RP
53fd5fa10b
xbps_transaction_update_packages: handle ENODEV case (package removed but not purged).
2011-12-16 11:03:40 +01:00
Juan RP
1a4c13e1bf
xbps_remove_pkg: fix path to REMOVE script.
2011-12-16 10:34:05 +01:00
Juan RP
450bf2713d
Also purge packages to replaced in transaction.
2011-12-16 10:21:51 +01:00
Juan RP
2bc9890eb6
xbps_purge_pkg: fix a memleak.
2011-12-16 09:28:37 +01:00
Juan RP
1698bde3a4
xbps_pkg_index_plist: fix path to repository's index.plist.
2011-12-15 15:34:51 +01:00
Juan RP
c60ab726a3
xbps_configure_pkg: fix path to INSTALL script.
2011-12-15 14:46:59 +01:00
Juan RP
32fdb35c56
libxbps: make xh->cachedir to always use a full path after xbps_init().
2011-12-15 14:24:10 +01:00
Juan RP
70e95786dc
libxbps: pass xhp->conffile as last argument when execing INSTALL/REMOVE scripts.
2011-12-15 12:24:59 +01:00
Juan RP
93e3603dcc
xbps_init: use __UNCONST to shut up gcc's -Wcast-qual warnings.
2011-12-15 11:30:17 +01:00
Juan RP
b0ceeaa58e
New configuration file via confuse: xbps.conf.
2011-12-15 11:19:20 +01:00