Commit Graph

569 Commits

Author SHA1 Message Date
Juan RP
647aa0727f xbps-pkgdb/Makefile: remove redundant assignment. 2012-12-14 09:56:12 +01:00
Juan RP
41f753248f xbps-rindex(8): remove obsoletes mode (-r) is now multithreaded. 2012-12-14 09:47:47 +01:00
Juan RP
338c0d549f xbps-pkgdb: fixed some memleaks. 2012-12-14 06:04:58 +01:00
Juan RP
a0443fc4ce xbps-rindex(8): clean mode (-c) is now multithreaded. 2012-12-14 04:59:47 +01:00
Juan RP
33a8150a98 xbps-pkgdb: checking all pkgs with -a/--all is now multithreaded. 2012-12-14 03:31:24 +01:00
Juan RP
db5da575a4 xbps-create: added support to add hardlinks. 2012-12-12 03:48:27 +01:00
Juan RP
f2d2b2fde9 xbps-install: fetch_cb.c: if stdout is a tty use stderr. 2012-12-10 11:20:59 +01:00
Juan RP
ca5aeebdc9 xbps-install: fetch_cb.c: do not print ANSI escape codes if stdout isn't a tty. 2012-12-10 11:09:18 +01:00
Juan RP
849191a5de xbps-rindex: [clean] if pkg cannot be read don't check for hash mismatch. 2012-12-07 09:57:41 +01:00
Juan RP
942db86eb5 xbps-query/search.c: add missing assert.h. 2012-12-06 10:58:11 +01:00
Juan RP
924ef35a07 xbps-query: fixed some issues found by pancake and valgrind. 2012-12-05 08:47:53 +01:00
Juan RP
298072ced3 xbps-rindex(8): in clean mode (-c) also remove entries with unmatched hash. 2012-12-03 11:05:37 +01:00
Juan RP
f45352dbf8 Added support for dynamic generation of revdeps for installed packages. 2012-11-30 17:40:52 +01:00
Juan RP
9ac3b60048 xbps-query: repo_revdeps_cb: simplify by using a dictionary iterator. 2012-11-30 10:45:26 +01:00
Juan RP
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
Juan RP
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
Juan RP
b7b6f7f1b4 xbps-create: use the right var in chdir(2) doh. 2012-11-25 11:03:03 +01:00
Juan RP
743eabb88e xbps-rindex: dont panic if old binpkg doesn't exist. 2012-11-24 08:50:52 +01:00
Juan RP
9f7357ecf5 xbps-{install,remove}.8: remove unimplemented option. 2012-11-21 06:57:13 +01:00
Juan RP
0c79a016a4 xbps-rindex: typo fix to make -r work. 2012-11-21 06:03:41 +01:00
Juan RP
b39881e47a xbps-remove: renamed -i, --ignore-revdeps to -F --force-revdeps. 2012-11-21 06:00:55 +01:00
Juan RP
7669fcf34d xbps-install: remove -p --print-format arg for now (unimplemented). 2012-11-21 05:57:53 +01:00
Juan RP
27622cf3cb xbps-{install,query}.8: update for 0.18 metadata changes. 2012-11-21 05:30:28 +01:00
Juan RP
79a31bb6bc xbps-query: implemented -X, --revdeps in repository mode. 2012-11-21 02:52:36 +01:00
Juan RP
37e5d7ebe0 xbps-query: show_pkg_files: return error if files != dictionary. 2012-11-20 22:58:15 +01:00
Juan RP
d063e63bbb xbps-create: new option -G, --source-revisions; mainly for xbps-src use. 2012-11-20 04:21:26 +01:00
Juan RP
78cd625c28 xbps-pkgdb: fixed symlinks check; this now detects modified symlinks correctly. 2012-11-19 21:12:04 +01:00
Juan RP
ca26c20dd5 xbps-query: show usage() when called with no args. 2012-11-19 21:06:37 +01:00
Juan RP
5de4fb1f0a xbps-install: -f will also overwrite pkg files. 2012-11-19 20:50:58 +01:00
Juan RP
01e67d1394 xbps-install: do not print anything for XBPS_STATE_INSTALL. 2012-11-19 12:29:47 +01:00
Juan RP
edc9853904 xbps-reconfigure: printf typo fix. 2012-11-18 13:23:24 +01:00
Juan RP
55982c7a3c xbps-query: process modes and arguments correctly. 2012-11-18 12:57:38 +01:00
Juan RP
ace91b17e0 xbps-pkgdb: add changes in reqby back to our pkgdb pkg dictionary. 2012-11-18 12:04:57 +01:00
Juan RP
66bb87d053 xbps-rindex: fixes to remove old binpkg when arch not matched and entry from index-files. 2012-11-17 19:22:58 +01:00
Juan RP
c899572bd4 xbps-pkgdb: don't forget to update pkgdb; some printf fixes. 2012-11-17 18:25:18 +01:00
Juan RP
e763f154a0 xbps-pkgdb: simplify the check code; make the reqby check work again. 2012-11-17 17:43:54 +01:00
Juan RP
b0fab7a3ee Implemented a cache to get pkg dicts from metadir.
This improves xbps-pkgdb -a marginally, but still seems to be a bit slow.
2012-11-16 21:50:52 +01:00
Juan RP
34bd49f85a New pkg metadata structure for 0.18. See the NEWS file for info. 2012-11-16 16:55:35 +01:00
Juan RP
a77727887d Improvements for xbps_fetch_file and xbps_repository_sync_index.
xbps_fetch_file:
	- A temp file is created with .part extension to improve resuming.
	- Files are downloaded in cwd.
	- Switch to futimens(2) and fsync(2).

xbps_repository_sync_index:
	- Do not create local repodir in metadir if it already exists.
	- Simplify the code thanks to new xbps_fetch_file().
2012-11-11 11:29:49 +01:00
Juan RP
d6735d5685 xbps_xasprintf: do not return NULL anymore; remove checks for this. 2012-11-11 09:37:27 +01:00
Juan RP
2a1e4fe137 xbps-query: sync XBPS_PKGINDEX_FILES with ownedby in repository mode. 2012-11-07 10:45:10 +01:00
Juan RP
d3f5223c1b xbps-install: only sync XBPS_PKGINDEX from remote repos. 2012-11-07 10:38:37 +01:00
Juan RP
ca095df52f libxbps: some tweaks for struct xbps_state_cb_data.
- Renamed args pkgname/version to arg0/arg1 to make them generic.
- Update bins with this and make some tweaks in state_cb.

Bumped API version.
2012-11-07 10:11:06 +01:00
Juan RP
89d892d98f xbps-install/fetch_cb.c: some printf tweaks. 2012-11-07 10:09:50 +01:00
Juan RP
fcb565cfa1 xbps-remove: dont error out if no orphans were found. 2012-11-06 14:46:43 +01:00
Juan RP
5830f154d5 xbps-query.8: improve -R, --repository description. 2012-11-06 11:41:33 +01:00
Juan RP
e21cdc68df Remove obsolete xbps-{bin,repo} utils. 2012-11-06 11:07:31 +01:00
Juan RP
e57e6669fb xbps-query: added a manual page. 2012-11-06 11:05:27 +01:00
Juan RP
11149f058c man: use the same width. 2012-11-06 10:33:29 +01:00
Juan RP
0c6a4f08ff xbps-install: added a manual page. 2012-11-06 10:23:07 +01:00