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
84d0e429ab
bin/xbps-query/list.c: simplify list_orphans().
2013-07-27 06:11:48 +02:00
20f2d10527
xbps-query(8): -L now prints all repos, including non working repos ( close #11 ).
2013-07-26 11:42:52 +02:00
e0643acbb0
xbps-query(8): fixed some memleaks in local/remote ownedby mode.
2013-07-21 10:49:30 +02:00
6358cf43fc
xbps-query: fix regression in -R, also print repository string object.
2013-07-07 09:59:25 +02:00
09e116b7f0
xbps_api.h -> xbps.h
2013-06-20 12:31:02 +02:00
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
3abe48b68a
Introduce xbps_repo_get_pkg_plist() and use it in xbps-query -R.
2013-06-14 10:22:10 +02:00
5c3985ddf1
xbps-query: search: simplify and use xbps_match_virtual_pkg_in_dict().
2013-06-14 09:40:10 +02:00
89ded69bed
xbps-query: use get_maxcols() from xbps-install.
2013-06-14 09:33:27 +02:00
5f2bba7f4e
Move functionality to resolve revdeps from repos to libxbps.
2013-06-14 08:13:51 +02:00
db1efb3aa6
Relax memory requirements on 64bit platforms; fix two memleaks.
2013-06-12 10:04:10 +02:00
6a9e394a60
xbps-query(8): extend 734a2c3
to also match with pkgpatterns.
2013-06-12 04:48:36 +02:00
5f02790ac7
xbps-query(8): fix regression introduced in 734a2c3
.
2013-06-11 16:41:36 +02:00
b646554aea
xbps-query: formatting tweaks for PROP_TYPE_ARRAY objects.
2013-06-11 16:26:27 +02:00
734a2c3c2b
xbps-query(8): added support to find revdeps for virtual pkgs in repository mode.
2013-06-11 16:18:40 +02:00
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
91c08bfe75
bin/xbps-query/ownedby.c: simply match patterns with fnmatch(3).
2013-05-13 15:10:47 +02:00
ae254e9b06
bin/xbps-query/list.c: return error if pkgver or short_desc are NULL.
2013-04-04 09:11:37 +02:00
70b89a88cc
xbps-query: make -o (ownedby) follow symlinks; close issue #4 from github.
2013-03-17 10:59:40 +01:00
dd9cf9737b
xbps-query: fix segfault when listing unexistent package files.
2013-03-13 23:15:42 +01:00
3e2aac74d2
xbps-query: print filename-{sha256,size} objs from index in repo mode.
2013-03-08 21:06:55 +01:00
dfe42ce7e3
xbps-query: -p expects an argument; show usage() otherwise.
2013-03-08 20:23:13 +01:00
a81316a248
xbps-query: ownedby.c: ignore unexistent files in pkg metadata.
2013-03-05 08:52:40 +01:00
7c1a0ac3e8
New pkgdb (0.21) and repo index (1.7) format, see NEWS for info.
2013-03-05 04:08:42 +01:00
c50cbf03c7
xbps-query: added support to query virtual packages in repository mode.
2013-03-02 19:10:13 +01:00
7e171b67cf
xbps-query: in search mode also count blanks for the output string.
2013-02-28 16:07:11 +01:00
30d9f6ae4d
xbps-query: pretty print "source-revision" pkg metadata obj.
2013-02-20 16:59:28 +01:00
1f324a76a2
xbps-{install,query,rindex}.8: document environment var: XBPS_TARGET_ARCH.
2013-02-20 11:42:06 +01:00
3cc8f66f64
xbps-query: in -s do not print "[virtual]" on vpkg matches.
2013-02-18 14:25:15 +01:00
be1086f8fb
xbps-query: -s, --search is able to find pkgs by matching virtual pkgnames.
2013-02-15 08:30:11 +01:00
3bb41a2662
xbps-query: changed -M (--list-orphans) shortopt to -O.
2013-02-13 15:47:46 +01:00
da957433cb
xbps-query: align -s output based in collected results not globally.
2013-02-11 16:18:43 +01:00
9c3cb200d4
xbps-query: align correctly -l results (state wasn't taken into account).
2013-02-11 11:04:25 +01:00
dcff876533
xbps-query: explicitly use -R for repository mode; otherwise local.
...
This closes #3 by radare.
2013-02-02 12:02:10 +01:00
cc068b2b39
xbps-query: do not sync repo index-files; use xbps-install -S instead.
2013-01-31 10:44:27 +01:00
130649bad9
xbps-query/list.c: remove obsolete code.
2013-01-24 09:37:58 +01:00
cf1c42a109
xbps-query.8: improve desc for -o and -s.
2012-12-20 07:17:16 +01:00
a12b1b671b
xbps-query.8: explain pkg states for the -l option.
2012-12-20 07:11:05 +01:00
b77a6df950
xbps-{install,query}.8: add PACKAGE EXPRESSION section.
2012-12-20 07:02:28 +01:00
faf0fd6a08
xbps-query: print pkg state in -l, --list-packages mode.
2012-12-20 06:15:56 +01:00
2a7700bc94
xbps-query: also print pkg state in local mode.
2012-12-20 06:15:18 +01:00
23e7f317f8
xbps-query: ownedby: simplify and avoid xbps_pkgpattern_match, fnmatch is enough.
2012-12-15 19:19:42 +01:00
e2176ec4b6
bin: no point in cleaning up resources when it's exiting...
2012-12-14 11:58:30 +01:00
942db86eb5
xbps-query/search.c: add missing assert.h.
2012-12-06 10:58:11 +01:00
924ef35a07
xbps-query: fixed some issues found by pancake and valgrind.
2012-12-05 08:47:53 +01:00
f45352dbf8
Added support for dynamic generation of revdeps for installed packages.
2012-11-30 17:40:52 +01:00
9ac3b60048
xbps-query: repo_revdeps_cb: simplify by using a dictionary iterator.
2012-11-30 10:45:26 +01:00
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
25612870f0
xbps-query: when checking revdeps from repos use the same pkgver from repo pkg.
...
This fixes showing revdeps for any pkg that uses dependencies like:
foo>2.0<3.0
blah<15
2012-11-26 10:22:09 +01:00