Juan RP
5f2ae48b71
xbps-bin: skip some unneeded stuff in the download and configure phases.
2011-02-23 23:43:45 +01:00
Juan RP
d357dfed90
Inline some very common functions in the API.
2011-02-23 17:27:51 +01:00
Juan RP
8baad7b5da
Simplify setting pkg state in transaction's dictionary.
2011-02-23 17:14:33 +01:00
Juan RP
12cdc7c242
xbps-bin: remove the unpack callback with a percentage.
...
It messes up some xbps_*printf()s, and removing it makes it look like
previous versions (<=0.7.3).
2011-02-22 16:33:54 +01:00
Juan RP
a306cebc96
xbps_set_pkg_state_installed: added two new optional arguments: version and pkgver.
...
This can be used to avoid some rare cases where the pkg dictionary is regpkgdb
is in a state where code can be faulty if those objects are not found.
2011-02-22 11:09:39 +01:00
Juan RP
9abcb92e39
xbps-bin::instal.c: some bugfixes for pkg state and the transaction steps.
...
- While installing a package, always check its state and don't ignore it
if it was already unpacked, we have to configure it.
- Before unpacking packages, configure packages that were unpacked previously.
2011-02-22 11:07:34 +01:00
Juan RP
15d164c70a
xbps_repository_{install,update}_pkg: respect pkg state in regpkgdb.
2011-02-22 10:31:16 +01:00
Juan RP
9e22df0725
xbps-bin: skip packages to be configured in the install/update stage, fix configured pkg count.
2011-02-21 23:28:39 +01:00
Juan RP
511dbffa9e
Simplify find_pkg_in_array().
2011-02-21 23:21:53 +01:00
Juan RP
c4db906a1f
xbps_api.h: fix some comments.
2011-02-21 18:00:44 +01:00
Juan RP
bdfa81c29d
package_unpack.c: fix a comment.
2011-02-21 17:57:46 +01:00
Juan RP
950853c72f
NEWS: tyopfix.
2011-02-21 17:47:01 +01:00
Juan RP
870ad18d58
xbps_init() now sets rootdir, cachedir and flags.
...
That means that the following functions were removed:
- xbps_set_{cachedir,flags,rootdir}.
- xbps_get_{cachedir,flags,rootdir}.
With this change fixed an obvious typo that made -c argument to not work,
and now the cache directory is an absolute path not relative to rootdir.
2011-02-21 17:42:47 +01:00
Juan RP
8d5a1ad0a3
xbps_api_impl.h: remove function name arguments in prototypes.
2011-02-21 14:04:57 +01:00
Juan RP
afe0f3e2f0
Make the xbps_handle struct const internally.
2011-02-21 14:03:08 +01:00
Juan RP
3acf91bb15
xbps-bin: unpack_progress_cb_verbose printf to stdout for consistency.
2011-02-21 13:53:08 +01:00
Juan RP
7ddd409b90
xbps_api.h: fix a comment.
2011-02-21 13:42:36 +01:00
Juan RP
22ae7aa2e8
Introduce struct xbps_handle and use it for xbps_init().
...
This structure sets up function callbacks for fetching files and
unpacking binary packages, as well as setting the debug boolean.
This way the affected functions (xbps_fetch_file() and
xbps_unpack_binary_pkg()) do not need to accept the fn cb pointers
and data as arguments.
Bump XBPS_RELVER.
2011-02-21 13:38:44 +01:00
Juan RP
0bd533f8a9
TODO: another item for xbps-bin(8).
2011-02-19 19:23:13 +01:00
Juan RP
078f9f1cda
Fixed finally another real case when updating and replacing pkgs.
2011-02-18 16:39:42 +01:00
Juan RP
8b58b88a5f
xbps_repository_{install,update}_pkg: fixed a stupid logic error.
2011-02-18 16:37:16 +01:00
Juan RP
1c4acebc49
Added a TODO file with some items.
2011-02-17 09:51:44 +01:00
Juan RP
5d016c53ff
NEWS: mention latest bugfix.
2011-02-17 09:26:43 +01:00
Juan RP
032f993a53
xbps_repository_pool_init: do not fail to internalize all repos when the first one fails.
...
If the first registered repo couldn't be internalized, all other repositories
were also failing because it returned error, so simply skip them and return
error when all them cannot be internalized.
2011-02-17 09:24:57 +01:00
Juan RP
b90c815e80
Minor nits to the xbps-{bin,repo}.8 manpages.
2011-02-05 17:32:14 +01:00
Juan RP
5af934cd5a
Update the pkgprops graph to match latest code.
2011-02-05 12:39:55 +01:00
Juan RP
b70eb0f4c5
Transform PROJECT_NUMBER in the doxyfile.
...
--HG--
rename : doc/xbps_api_doxyfile => doc/xbps_api_doxyfile.in
2011-02-05 12:34:45 +01:00
Juan RP
b66b72cc63
Update the graph for the XBPS transaction dictionary.
2011-02-05 12:33:54 +01:00
Juan RP
d5c2a3266f
Rename the transaction object key to "transaction" rater than "trans-action".
2011-02-05 12:21:04 +01:00
Juan RP
8803bfd7d8
Move plist find/remove functions into its own files.
2011-02-05 12:06:03 +01:00
Juan RP
f4cdbaf17d
Move xbps_read_dict_from_archive_entry() and friends into its own file.
2011-02-05 11:57:13 +01:00
Juan RP
14d3fe8aa7
xbps-bin: shorter informative messages for transactions.
2011-02-05 11:47:02 +01:00
Juan RP
2e140cde7b
xbps-bin.8: fix typo.
2011-02-05 11:29:18 +01:00
Juan RP
de296d8192
Added the concept of package properties in the API.
...
See the NEWS file and xbps-bin(8) for more information.
2011-02-05 11:25:04 +01:00
Juan RP
d25bc35711
xbps-bin::show_pkg_info() remove useless prop_object_type_t member.
2011-02-04 18:00:47 +01:00
Juan RP
40cf7bad32
xbps-repo: call xbps_end() in usage() before exit(3).
2011-02-04 16:24:22 +01:00
Juan RP
ec7549fa04
xbps_sort_pkg_deps: change an assertion into a real check.
2011-02-04 16:17:47 +01:00
Juan RP
097b50b3c2
Fix all warnings found by clang analyzer as reported by ojab in issue 3.
2011-02-03 17:49:43 +01:00
Juan RP
0a26497b50
xbps_repository_update_allpkgs: return ENOENT if regpkgdb dict cannot be internalized.
2011-02-03 09:34:38 +01:00
Juan RP
692caea1cd
xbps_get_pkg_state_*: if state object is not available return EINVAL.
2011-02-02 09:53:56 +01:00
Juan RP
927d7e0c5d
xbps_repository_find_pkg_deps: improve a debug printf.
2011-02-01 17:32:25 +01:00
Juan RP
0e38b649ff
xbps_get_pkg_state_installed: if pkg dictionary is not found return ENOENT.
2011-02-01 17:30:59 +01:00
Juan RP
fdc496e8f1
Added xbps_repository_pkg_replaces() to handle pkg "replaces" in the transaction.
...
The frontend (in that case xbps-bin(8)) is only responsible to remove
those packages that have the "trans-action" string object set to "remove".
2011-02-01 01:21:54 +01:00
Juan RP
7b159d6f33
xbps-dgraph: parse the "provides" obj for virtual packages.
2011-01-31 16:40:33 +01:00
Juan RP
da607becf9
Make some xbps_warn_printf dependent of XBPS_FLAG_VERBOSE.
2011-01-30 18:38:16 +01:00
Juan RP
5c7eaf2f92
xbps_warn_printf: fix previous and remove unused var.
2011-01-30 18:32:15 +01:00
Juan RP
42eb834e8d
xbps_warn_printf: always print regardless of XBPS_FLAG_VERBOSE.
2011-01-30 18:31:36 +01:00
Juan RP
fca3d6b9bf
Use xbps_{error,warn}_printf() everywhere.
2011-01-30 18:23:33 +01:00
Juan RP
e04f167d09
xbps_repository_pool_foreach: use SIMPLEQ_FOREACH_SAFE.
2011-01-30 15:09:18 +01:00
Juan RP
ec15af17a0
Update queue.h with latest NetBSD's version.
2011-01-30 15:08:57 +01:00