5e0b06dc00
xbps-bin: improve def unpack cb to print more meaningful messages.
2012-05-06 16:48:47 +02:00
bbd0d893d0
xbps_repository_sync_index: print the plist file being downloaded in cb.
2012-05-06 09:10:25 +02:00
8a4b143bf3
Show a proper error message if download of a binpkg fails in a transaction.
2012-05-06 09:09:09 +02:00
934bc4869e
rpool: make xbps_handle::repo_pool array immutable after initialization.
2012-04-13 10:06:08 +02:00
8b2c4ed47e
xbps_dictionary_from_metadata_plist: if vpkg not found, look for a real pkg.
2012-04-13 09:23:35 +02:00
83bda174ab
libxbps: make xbps_find_virtualpkg_* only look for virtual pkgs.
...
Before this commit they also looked for non virtual packages, which
is not what it was meant when those functions were added.
2012-04-12 11:57:21 +02:00
53d28fcb35
rpool: miscellaneous improvements to _init() and _release().
...
xbps_repository_pool_init:
- Avoid unnecessary extra access(2) syscall when internalizing
repository index plist files.
xbps_repository_pool_release:
- Make sure to release internalized repository index arrays.
2012-04-12 11:54:11 +02:00
bfe7ab1c5a
xbps_configure_pkg: simplify and remove "version" arg (API change).
...
The "version" argument (being optional) clearly is not needed and it
can be fully removed. This simplifies the internal implementation as well
as the API.
2012-04-10 10:02:27 +02:00
ef6d1adf91
xbps_set_pkg_state_installed: simplify (API change).
...
The third optional argument "pkgver" clearly is useless because we can
create it internally with "pkgname" and "version" arguments instead.
Also make the "version" argument mandatory.
2012-04-10 09:43:59 +02:00
732ce45b86
libxbps: new function xbps_pkgdb_get_pkgd_by_pkgver().
...
Finds a pkg dictionary in pkgdb by matching its pkgver object.
2012-04-05 10:57:15 +02:00
feacc506de
When reinstalling existing pkgs, remove previous entry in pkgdb's requiredby.
2012-04-04 10:20:29 +02:00
4511e581b2
xbps_configure_pkg: improve error messages.
2012-03-31 10:08:52 +02:00
8e0612bb46
A bugfix while sorting dependencies in a transaction (thanks dave).
2012-03-30 01:39:13 +02:00
a5f4848d0b
Use best pkg available when resolving required dependencies.
2012-03-28 12:01:59 +02:00
af593500c3
Fix a couple of issues resolving deps with virtual packages.
2012-03-24 09:21:28 +01:00
e698acf440
Make xbps_find_virtualpkg_conf_xxx private again, unused in test suite now.
2012-03-13 11:37:50 +01:00
9bada162a1
New "metadir" member in xbps_handle to override default metadata dir.
2012-03-13 10:22:35 +01:00
749e03aa29
Make xbps_find_virtualpkg_conf_in_xxx_by_xxx part of the API and add kyua tests.
2012-03-12 17:51:50 +01:00
715990a1e5
Make xbps_find_virtualpkg_in_dict_by_xxx part of the API and add kyua tests.
2012-03-12 16:36:46 +01:00
48c36602a5
Simplify even more previous commit.
2012-03-11 17:26:41 +01:00
35b1932416
Apply correctly fix to match_any_virtualpkg_in_rundeps().
2012-03-11 17:18:33 +01:00
ca03127a82
Revert "xbps_match_any_virtualpkg_in_rundeps: break correctly from inner loop on match."
...
This reverts commit 31b1975b1e
.
Revert experimental changes to repository_finddeps.c.
2012-03-11 17:16:58 +01:00
31b1975b1e
xbps_match_any_virtualpkg_in_rundeps: break correctly from inner loop on match.
2012-03-11 17:15:49 +01:00
06745b70ae
Fixed issue 22: always set perms from binpkg to existing files while unpacking.
2012-03-07 12:00:08 +01:00
af9bd15af7
xbps_init: set xhp->conffile to NULL if conf file cannot be read.
2012-03-05 17:33:36 +01:00
4b02a75629
xbps_init: fix a typo when checking for the configuration file.
2012-03-05 17:29:02 +01:00
216673aa4a
Fixed 'xbps-bin reconfigure all' regression added in 0.13.
2012-02-28 21:16:41 +01:00
dc61fbed0e
libxbps: match required pkgdep by virtual pkg in a transaction.
2012-02-28 20:39:10 +01:00
001947d9bb
Only enable support for gzip, bzip2 and xz compression formats.
...
After looking at profiling output I saw that a not so small of time spent
was in libarchive trying to know if archive is zip compressed... so
I've enabled the three compression formats supported by xbps-src.
2012-02-22 04:16:36 +01:00
485a62e221
Simplify xbps_repository_pool_find_pkg internals for best match case.
2012-02-22 03:58:41 +01:00
c965c27dfb
Skip removing obsolete files in some cases.
2012-02-20 20:23:33 +01:00
6e50919d2b
xbps_repository_pool_dictionary_metadata_plist: make it accept a pkgpattern.
2012-02-16 08:55:07 +01:00
a5c0513686
portableproplib: fix gzFile to make it work with zlib-1.2.6.
2012-02-16 08:51:00 +01:00
cbf7417d1d
xbps_transaction_install_pkg: return EEXIST if pkg already installed.
2012-02-14 00:34:26 +01:00
d8e7ed0a23
xbps_repository_pool_foreach: simplify internals.
2012-02-01 02:30:23 +01:00
f48ab4a686
Fixed a bug in rpool to find best pkg available.
2012-01-29 12:12:00 +01:00
cfae783f64
xbps_init: avoid using a global var.
2012-01-26 11:43:35 +01:00
b7da3464dd
xbps_repository_sync_pkg_index: update for index 1.4 format.
2012-01-25 06:02:38 +01:00
7dfc01b7a6
Calculate required/freed size for updates in transactions too.
2012-01-25 05:10:24 +01:00
1a73b93d63
Calculate properly required/freed size in transactions.
2012-01-25 04:56:54 +01:00
ff0b9b9b59
transaction_find_pkg: warning due to uninitialized var.
2012-01-25 02:18:15 +01:00
abb0d260b9
xbps-bin: the install target gains suppor for installing best pkg available.
2012-01-25 02:14:04 +01:00
49baad48f4
Fixed module-init-tools->kmod update as reported by davehome.
...
The problem was that required package dependency was installed, but
the version didn't satisfy the requirement and the code unconditionally
assumed an updated existed in repository pool. Now the code checks
package state to set transaction reason.
2012-01-24 18:45:50 +01:00
ec764ffec8
xbps_transaction_package_replace: improved debug output.
2012-01-24 18:43:43 +01:00
791f1d40b2
xbps_handle: remove debug, install_*, syslog_enabled members.
...
Replaced by definitions that can be set to xbps_handle::flags.
2012-01-22 10:52:35 +01:00
a166d6a2a3
Simplify xbps_transaction_prepare()/commit() and related API changes.
...
- xbps_handle::transd -> new member with transaction dictionary.
- xbps_transaction_prepare: returns an int.
- xbps_transaction_commit: doesn't need any arg now.
- xbps_repository_pool_sync: doesn't need any arg now.
- xbps_pkgdb_update: removed xbps_handle * arg.
- xbps_transaction_missingdeps_get: removed, missing_deps array is in
xbps_handle::transd("missing_deps") array object.
2012-01-22 10:00:46 +01:00
38db570c19
pkgdb: foreach_xxx_pkg_cb -> foreach_xxx_cb.
2012-01-21 10:30:20 +01:00
4758635f15
xbps_find_pkg_orphans: make returned array immutable.
2012-01-21 10:21:01 +01:00
1781231454
xbps_repository_pool_init: make registered index arrays immutable.
2012-01-21 10:20:45 +01:00
8c8273d3ed
pkgdb: update copyright year, shorter conditional.
2012-01-20 18:37:08 +01:00