Juan RP
ed67cad564
xbps-query(8): added local search mode support (-s [-p]).
2014-09-11 01:15:51 +02:00
Juan RP
01dbb968dd
Welcome pkgdb-0.38.
2014-09-11 00:12:12 +02:00
Juan RP
8939e8697d
bin/*/*.8: add missing End-List macros (.El).
2014-08-23 09:26:02 +02:00
Juan RP
1d2dabca09
xbps-query(8): fix --fulldeptree with pkgs that have multiple vpkgs.
2014-08-23 08:47:38 +02:00
Juan RP
3f22aca00c
xbps-query: fix an obvious tyop that broke -RX.
2014-08-19 16:59:25 +02:00
Juan RP
d7c7783ac2
xbps-query(8): added --fulldeptree to print a full dependency tree with -x.
...
This fixes the regression introduced in 0.37 with -xx; -xx is not supported
anymore, use `--fulldeptree -x`.
2014-08-19 13:14:37 +02:00
Juan RP
c301cc32e5
xbps-query(8): -S mode prints keys with ANSI bold escape code.
2014-08-05 01:22:58 +02:00
Juan RP
0b116a0f3f
xbps-query(8): --search --property now works with <number> objects.
...
For example to find a package where its binpkg file is bigger than 1GB:
$ xbps-query --regex -s [0-9][0-9][0-9][0-9]MB -p filename-size
2014-08-02 12:11:28 +02:00
Juan RP
f8d8f91a08
Implement support to "preserve" existent on-disk files.
...
See NEWS for more information. Fix #51
2014-08-01 15:09:51 +02:00
Juan RP
36ad783f07
xbps-query/search: handle vpkg matches into its own conditional; a small performance improvement.
2014-07-06 09:33:59 +02:00
Juan RP
a3c253d03c
xbps-query: check regcomp() return value.
2014-06-03 12:50:34 +02:00
Juan RP
9e1132c950
xbps-query.8: explain modes and accepted options a bit more detailed.
2014-05-27 12:01:48 +02:00
Juan RP
91344451a3
xbps-query: another argc fixup.
2014-05-27 08:19:08 +02:00
Juan RP
ca8619dd57
xbps-query: fix fallout due to no_argument -> required_argument changes.
2014-05-26 18:05:30 +02:00
Juan RP
0ffc536b48
xbps-query: initialize some modes correctly; remove obsolete -D option.
2014-05-26 17:59:58 +02:00
Juan RP
f1cb7f43dc
xbps-query: fix arg[cv] logic added in previous.
2014-05-26 17:52:41 +02:00
Juan RP
0eadaab19d
xbps-query: added --regex to use EREs in ownedby and search modes.
...
This replaces previous -S, --search-regex option. The regex option
can now be used in the ownedby and search modes.
Also added -S, --show option which is the default mode if no other
mode set, and defaults to it to preserve compatibility.
2014-05-26 17:30:44 +02:00
Juan RP
0fbab93383
xbps-query/search.c: simplify regex matching code.
2014-05-26 08:36:33 +02:00
Juan RP
1f0605810c
xbps-query: added -S, --search-regex to match EREs against pkg props in repos.
2014-05-25 11:03:31 +02:00
Juan RP
35de44fcbd
xbps-query(8): fix a segfault with -Rf if pkg is in repodata but not its binpkg.
2014-05-02 17:23:53 +02:00
Juan RP
43090cef2a
Xref xbps-uchroot(8)
2014-04-21 10:58:09 +02:00
Juan RP
bb491e2667
libxbps: detect and ignore incorrect deps of a pkg if those are virtual pkgs.
2014-04-20 16:54:50 +02:00
Juan RP
1fb3c501ed
xbps-{install,query}.8: clarify package expression matching.
2014-04-18 08:53:14 +02:00
Juan RP
f3274fd13a
xbps-query: sync usage() with reality.
2014-04-17 11:39:36 +02:00
Juan RP
ed70fe5009
xbps-query(8): fix a segfault with '-vL' for local unsigned repositories.
2014-04-13 12:24:26 +02:00
Juan RP
8244f57320
bin/*: update manpages with Xref xbps-checkvers(8).
2014-04-07 12:22:55 +02:00
Juan RP
981bff38cf
xbps-query.8: sync with reality.
2014-03-21 14:15:25 +01:00
Juan RP
cb66092fbc
xbps-query: added support for -p/--property argument in search mode.
...
See the NEWS file for more information.
2014-03-21 13:19:40 +01:00
Juan RP
f2868856ee
xbps-query: in local mode print all objs from pkgdb.
2014-03-21 11:14:16 +01:00
Juan RP
9eebead5d7
xbps-query: print the 'hold' object on installed packages.
2014-03-21 09:33:18 +01:00
Juan RP
d08e76a386
Keep repo metadata if possible when updating repodata (xbps-rindex -a/-c).
...
API/ABI incompat changes, you've been warned.
2014-01-30 13:07:34 +01:00
Juan RP
5eea259c13
Remove the config.h kludge and override vasprintf detection via HAVE_VASPRINTF.
2014-01-20 18:50:33 +01:00
Juan RP
804a39c63b
Added XBPS_ARCH environment var to override uname(2) machine result.
2014-01-09 11:41:25 +01:00
Juan RP
3ca442eb3d
xbps-rindex: [add] re-add all package objects to the index.
2013-12-30 10:27:54 +01:00
Juan RP
0a5fa442f2
bin/xbps-query/list.c: remove extra newline.
2013-12-24 11:08:48 +01:00
Juan RP
ec0d38c469
Implement per pkg RSA signatures and on-demand repository access.
2013-12-24 10:43:55 +01:00
Juan RP
0744b76946
xbps-xxx.8: update issues url.
2013-12-17 15:38:56 +01:00
Juan RP
2a21354a1c
Make some reorganization in struct xbps_handle.
...
The variables to set cachedir, rootdir and metadir have been
changed to "array of chars", this way there are no extra allocations.
Update clients accordingly and bump API version.
2013-12-16 11:46:39 +01:00
Juan RP
e8c454f3d2
xbps-query: do not print pkg dirs in local ownedby mode, it's unnecessary.
2013-12-12 15:34:37 +01:00
Juan RP
4403caa434
Add repos set in xbps_handle::repositories to the top of the list.
...
That means that now xbps-install(8) and xbps-query(8) --repository
option does not override the repository list of a configuration file.
2013-12-04 16:59:15 +01:00
Juan RP
17228eb12b
xbps-query(8): do not print useless stuff with -vL.
2013-11-18 16:52:12 +01:00
Juan RP
8882b0215f
Redo how the repository keys are stored.
...
- Repository keys are now stored in a new directory on metadir (/var/db/xbps):
<metadir>/key>
- Repository keys are stored with the hex fingerprint of its RSA
public key in a plist dictionary:
<metadir>/keys/xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx.plist
- Drop xbps-rkeys(8) and merge its functionality into xbps-install(8) and
xbps-query(8).
- xbps-query(8) -vL now shows some more details of remote repositories:
3134 http://localhost:8000 (RSA signed, verified)
Signed-by: Void Linux
4096 60:ae:0c:d6:f0:95:17:80:bc:93:46:7a:89:af:a3:2d
16 http://localhost:8000/nonfree (RSA signed, verified)
Signed-by: Void Linux
4096 60:ae:0c:d6:f0:95:17:80:bc:93:46:7a:89:af:a3:2d
Bump XBPS_API_VERSION.
2013-11-18 16:05:46 +01:00
Juan RP
70047586ee
Xref xbps-rkeys(8)
2013-10-12 10:13:32 +02:00
Juan RP
250916fa6a
xbps-query: use the _multi version to find out largest pkgver string.
2013-10-08 10:39:20 +02:00
Juan RP
1f270e3a1a
xbps-query: adapt to the new libxbps API.
2013-10-07 10:22:45 +02:00
Juan RP
8d5c48b861
Added support for the long awaited feature: RSA signed repositories.
2013-10-05 11:38:04 +02:00
Juan RP
27db8e89c4
xbps-query: replace -D --defrepo' option with
-R' and `--repository=url'.
...
The argument in `--repository' is optional, therefore must be specified
with `=' to work. If no argument is specified, repository mode is enabled
preserving the repository list of configuration file.
2013-09-18 17:13:43 +02:00
Juan RP
5e1432f418
Added support to specify multiple repositories via cmdline ( close #17 ).
2013-09-18 16:45:05 +02:00
Juan RP
023484ca0b
Introduce xbps_{array,pkgdb}_foreach_cb_multi() and use it where appropiate.
...
In some tasks the single threaded implementation outperms the multithreaded
one. Use it where it really makes a difference. The _multi() routines do not
spawn any thread if _SC_NPROCESSORS_ONLN == 1.
Bump XBPS_API_VERSION.
2013-09-17 16:30:13 +02:00
Juan RP
98e1687ef5
Re-add all pkg metadata objects to the repository index.
2013-09-16 09:09:56 +02:00
Juan RP
c5acbc7953
mk/prog.mk: set MAN to $(BIN).8 by default.
2013-09-16 08:57:24 +02:00
Juan RP
4057e4961c
Use C99 for loop initializers.
...
That means that a C99 compiler is now mandatory.
2013-09-15 10:06:49 +02:00
Juan RP
9a9c816552
xbps-query.8: remove dup block.
2013-09-13 09:17:00 +02:00
Juan RP
a039330f3c
Misc cleanups: use __attribute__((__unused__)); remove dead code.
2013-08-29 10:45:30 +02:00
Juan RP
add4484ad8
bin/xbps-query/xbps-query.8: document -H --list-hold-pkgs.
2013-08-18 11:06:45 +02:00
Juan RP
22ae6295f5
manpages: use github url for bugreports.
2013-08-18 10:17:45 +02:00
Juan RP
776b94e6bc
Remove PackagesOnHold from xbps.conf; use xbps-pkgdb -m hold|unhold instead.
...
To put a package on hold mode:
$ xbps-pkgdb -m hold foo
To unhold the package:
$ xbps-pkgdb -m unhold foo
To list packages on hold mode:
$ xbps-query -H
This also close #12 from github.
2013-08-12 14:46:54 +02:00
Juan RP
4428cac154
xbps-query: ignore non working repos; misc fixes.
2013-07-27 20:02:07 +02:00
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
84d0e429ab
bin/xbps-query/list.c: simplify list_orphans().
2013-07-27 06:11:48 +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
e0643acbb0
xbps-query(8): fixed some memleaks in local/remote ownedby mode.
2013-07-21 10:49:30 +02:00
Juan RP
6358cf43fc
xbps-query: fix regression in -R, also print repository string object.
2013-07-07 09:59:25 +02:00
Juan RP
09e116b7f0
xbps_api.h -> xbps.h
2013-06-20 12:31:02 +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
3abe48b68a
Introduce xbps_repo_get_pkg_plist() and use it in xbps-query -R.
2013-06-14 10:22:10 +02:00
Juan RP
5c3985ddf1
xbps-query: search: simplify and use xbps_match_virtual_pkg_in_dict().
2013-06-14 09:40:10 +02:00
Juan RP
89ded69bed
xbps-query: use get_maxcols() from xbps-install.
2013-06-14 09:33:27 +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
6a9e394a60
xbps-query(8): extend 734a2c3
to also match with pkgpatterns.
2013-06-12 04:48:36 +02:00
Juan RP
5f02790ac7
xbps-query(8): fix regression introduced in 734a2c3
.
2013-06-11 16:41:36 +02:00
Juan RP
b646554aea
xbps-query: formatting tweaks for PROP_TYPE_ARRAY objects.
2013-06-11 16:26:27 +02:00
Juan RP
734a2c3c2b
xbps-query(8): added support to find revdeps for virtual pkgs in repository mode.
2013-06-11 16:18:40 +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
91c08bfe75
bin/xbps-query/ownedby.c: simply match patterns with fnmatch(3).
2013-05-13 15:10:47 +02:00
Juan RP
ae254e9b06
bin/xbps-query/list.c: return error if pkgver or short_desc are NULL.
2013-04-04 09:11:37 +02:00
Juan RP
70b89a88cc
xbps-query: make -o (ownedby) follow symlinks; close issue #4 from github.
2013-03-17 10:59:40 +01:00
Juan RP
dd9cf9737b
xbps-query: fix segfault when listing unexistent package files.
2013-03-13 23:15:42 +01:00
Juan RP
3e2aac74d2
xbps-query: print filename-{sha256,size} objs from index in repo mode.
2013-03-08 21:06:55 +01:00
Juan RP
dfe42ce7e3
xbps-query: -p expects an argument; show usage() otherwise.
2013-03-08 20:23:13 +01:00
Juan RP
a81316a248
xbps-query: ownedby.c: ignore unexistent files in pkg metadata.
2013-03-05 08:52:40 +01:00
Juan RP
7c1a0ac3e8
New pkgdb (0.21) and repo index (1.7) format, see NEWS for info.
2013-03-05 04:08:42 +01:00
Juan RP
c50cbf03c7
xbps-query: added support to query virtual packages in repository mode.
2013-03-02 19:10:13 +01:00
Juan RP
7e171b67cf
xbps-query: in search mode also count blanks for the output string.
2013-02-28 16:07:11 +01:00
Juan RP
30d9f6ae4d
xbps-query: pretty print "source-revision" pkg metadata obj.
2013-02-20 16:59:28 +01:00
Juan RP
1f324a76a2
xbps-{install,query,rindex}.8: document environment var: XBPS_TARGET_ARCH.
2013-02-20 11:42:06 +01:00
Juan RP
3cc8f66f64
xbps-query: in -s do not print "[virtual]" on vpkg matches.
2013-02-18 14:25:15 +01:00
Juan RP
be1086f8fb
xbps-query: -s, --search is able to find pkgs by matching virtual pkgnames.
2013-02-15 08:30:11 +01:00
Juan RP
3bb41a2662
xbps-query: changed -M (--list-orphans) shortopt to -O.
2013-02-13 15:47:46 +01:00
Juan RP
da957433cb
xbps-query: align -s output based in collected results not globally.
2013-02-11 16:18:43 +01:00
Juan RP
9c3cb200d4
xbps-query: align correctly -l results (state wasn't taken into account).
2013-02-11 11:04:25 +01:00
Juan RP
dcff876533
xbps-query: explicitly use -R for repository mode; otherwise local.
...
This closes #3 by radare.
2013-02-02 12:02:10 +01:00
Juan RP
cc068b2b39
xbps-query: do not sync repo index-files; use xbps-install -S instead.
2013-01-31 10:44:27 +01:00
Juan RP
130649bad9
xbps-query/list.c: remove obsolete code.
2013-01-24 09:37:58 +01:00
Juan RP
cf1c42a109
xbps-query.8: improve desc for -o and -s.
2012-12-20 07:17:16 +01:00
Juan RP
a12b1b671b
xbps-query.8: explain pkg states for the -l option.
2012-12-20 07:11:05 +01:00
Juan RP
b77a6df950
xbps-{install,query}.8: add PACKAGE EXPRESSION section.
2012-12-20 07:02:28 +01:00
Juan RP
faf0fd6a08
xbps-query: print pkg state in -l, --list-packages mode.
2012-12-20 06:15:56 +01:00
Juan RP
2a7700bc94
xbps-query: also print pkg state in local mode.
2012-12-20 06:15:18 +01:00