Juan RP
0c7701f2bc
Introduce xbps_array_foreach_cb() and use it in random code.
...
This routine will spawn a thread per core to process N items stored
in the specified array, the last thread gets the remainder of items left.
Results have shown that xbps benefits if there is a considerable amount
of items and number of threads being spawned.
Use it in xbps_pkgdb_foreach_cb(), xbps-pkgdb(8), xbps-query(8)
and xbps-rindex(8).
On UP systems there's no overhead because pthread(3) is not used at all.
WIP! investigate if it can be used in libxbps (xbps_rpool_foreach()),
and finish conversion of xbps-rindex(8) -c.
2013-07-27 09:47:16 +02:00
Juan RP
432067de48
Remove three unused API functions.
2013-07-27 06:12:59 +02:00
Juan RP
20f2d10527
xbps-query(8): -L now prints all repos, including non working repos ( close #11 ).
2013-07-26 11:42:52 +02:00
Juan RP
db7dd3fd9b
lib/repo_pkgdeps.c: print correctly missing dependencies.
2013-07-16 08:00:42 +02:00
Juan RP
7941b225fb
rpool: no need to add repository object; it's already set by the repo code.
2013-07-07 09:58:30 +02:00
Juan RP
ecd15b7d57
Check if an update for conflicting pkg is in the transaction for revdeps in vpkgs.
2013-07-05 10:09:32 +02:00
Juan RP
42ba861e21
lib/fetch: ignore -Wformat-nonliteral with clang.
2013-07-02 08:54:02 +02:00
Juan RP
789c756854
xbps_transaction_revdeps: properly print the broken revdeps on real deps.
2013-07-02 00:47:16 +02:00
Juan RP
47eed214a6
xbps_repo_get_pkg_revdeps: don't continue if arg is a virtual pkg.
2013-06-27 18:14:38 +02:00
Juan RP
505a933097
Added support to verify reverse dependencies in a transaction.
...
See https://plus.google.com/106812073015308749022/posts/ZXMHimd8iKd
2013-06-27 16:52:31 +02:00
Juan RP
4494e0554d
lib/plist_find.c: typo in comment.
2013-06-27 16:26:19 +02:00
Juan RP
52fc384e4e
Fixed some issues/warnings found by clang-analyzer.
2013-06-20 11:25:43 +02:00
Juan RP
42c0766c00
Get rid of libfetch and proplib external dependencies.
...
The list of required external deps is now confuse, libarchive and openssl.
libxbps now includes a wrapper for proplib prefixed with xbps_ rather than prop_.
2013-06-20 10:26:12 +02:00
Juan RP
31efece727
Hide libfetch symbols if using the internal copy.
2013-06-19 11:57:25 +02:00
Juan RP
d419f8ac2a
Move fetch.h to lib/fetch.
2013-06-19 11:03:03 +02:00
Juan RP
ee9b799822
Make sure that only 1 thread can inject the vpkg config files.
2013-06-14 12:31:43 +02:00
Juan RP
9d80524a34
Minor optimization: no need to check if obj is NULL, prop_object_type() does that already.
2013-06-14 12:22:29 +02:00
Juan RP
3abe48b68a
Introduce xbps_repo_get_pkg_plist() and use it in xbps-query -R.
2013-06-14 10:22:10 +02:00
Juan RP
2c03e1c9a8
Read virtual pkg config files only when it's necessary.
2013-06-14 10:00:33 +02:00
Juan RP
5f2bba7f4e
Move functionality to resolve revdeps from repos to libxbps.
2013-06-14 08:13:51 +02:00
Juan RP
db1efb3aa6
Relax memory requirements on 64bit platforms; fix two memleaks.
2013-06-12 10:04:10 +02:00
Juan RP
99be698979
Use a single file to store repository data.
...
This is just the starting point to extend repositories with PGP signatures.
2013-06-10 10:28:39 +02:00
Juan RP
c22dfa8d52
Make sure that pkg meta plist are always created, even in pkgs without files.
2013-05-17 09:17:32 +02:00
Juan RP
769205db0c
Before unpacking pkg files, first create the pkg metafile (temp fix for #7 ).
2013-05-17 08:24:47 +02:00
Juan RP
7da5f6e8f7
lib/package_unpack.c: remove extra arg in xbps_set_cb_state().
2013-05-15 12:45:35 +02:00
Juan RP
5fd7565e6c
xbps-install(8): -R now overrides the repository list set in a configuration file.
...
Now -R can be used independently if a configuration file exists or not.
2013-04-18 18:17:14 +02:00
Juan RP
80de70d0cf
lib/transaction_dictionary.c: get installed_size obj from pkg metadata correctly.
...
This lead to incorrect sizes or no size when computing freed/installed size
in the transaction dictionary.
2013-04-04 10:40:32 +02:00
Juan RP
ef4e43931b
lib/rindex_sync.c: remove extra parameter in a variadic function.
2013-04-04 10:18:10 +02:00
Juan RP
6fdb2e322d
lib/package_unpack.c: remove extra parameter in a variadic function.
2013-04-04 10:15:32 +02:00
Juan RP
dc900353e4
lib/initend.c: xbps_end: remove bogus assignment.
2013-04-04 10:07:19 +02:00
Juan RP
1741019b90
lib/transaction_sortdeps.c: remove bogus assignment in pkgdep_release().
2013-04-04 09:57:59 +02:00
Juan RP
c753eae9f7
lib/package_unpack.c: fix two possible memleaks.
2013-04-04 09:55:35 +02:00
Juan RP
dbf4bb184e
xbps_transaction_remove_pkg: fix uninitialized argument value reported by scan-build.
2013-04-04 09:22:40 +02:00
Juan RP
0a1ea51e4e
lib/package_unpack.c: fix a meamleak in error path.
2013-04-04 09:17:32 +02:00
Juan RP
e844bc1ad5
xbps_callback_array_iter_reverse: initialize rv (fixes garbage return value).
2013-04-04 09:13:52 +02:00
Juan RP
e4a3342c39
xbps_entry_install_conf_file: pass correct number of args to xbps_set_cb_state().
2013-03-27 17:22:44 +01:00
Juan RP
7c4f20ba89
lib/transaction_commit.c: fix a use-after-free in state cb (found by ojab).
2013-03-26 10:35:20 +01:00
Juan RP
8d6f3b5029
unpack: use lchown(2) to set proper uid/gid to symlinks.
2013-03-17 17:13:07 +01:00
Juan RP
57bb7baf5e
unpack: use archive_entry_{filetype,uid,gid,mode} rather than stored struct stat.
2013-03-15 13:18:30 +01:00
Juan RP
b5d141e28c
When checking for obsolete files ignore unexistent files.
2013-03-13 22:08:13 +01:00
Juan RP
5efa1de8d5
lib/package_unpack.c: no need to use a var just to check lstat() rval.
2013-03-11 14:06:47 +01:00
Juan RP
a92863cb62
xbps_find_pkg_orphans: remove workaround for target pkgs; ignore unknown pkgs.
2013-03-11 12:13:42 +01:00
Juan RP
0845d6cae3
xbps_transaction_remove_pkg: handle correctly target pkg.
2013-03-11 12:13:02 +01:00
Juan RP
b9888fd7be
xbps_match_virtual_pkg_in_dict: add support to match vpkgs with exact version.
2013-03-10 10:07:54 +01:00
Juan RP
8fce81cc9f
pkgdb: do not add dups in revdeps generation; remove old code.
2013-03-10 08:58:37 +01:00
Juan RP
356f451d17
Renameed lib/package_remove_obsoletes.c -> package_find_obsoletes.c.
2013-03-09 17:21:27 +01:00
Juan RP
fe922ace4c
Merge portable proplib 0.6.3.
2013-03-09 16:41:40 +01:00
Juan RP
84745dfe33
xbps_file_hash: remove madvise usage (no gain irl).
2013-03-09 16:22:41 +01:00
Juan RP
b976a45aed
New code to find pkg obsolete files, with a proper kyua test.
...
Previous code incorrectly found obsolete files in this case:
(curpkg) - in files: /etc/foo.conf
(newpkg) - in conf_files: /etc/foo.conf
and removed this file because the code couldn't find it in the same
array. The new code fixes this case and compares the whole pkg filelist.
2013-03-09 13:30:56 +01:00
Juan RP
e2b303363b
lib/package_unpack.c: fix a memleak.
2013-03-09 11:07:14 +01:00