Commit Graph

1302 Commits

Author SHA1 Message Date
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
fcdb6b0930 unpack: use pkg dictionary from metadir to find obsoletes! 2012-11-17 15:14:11 +01:00
Juan RP
cc99e887a2 xbps_pkg_exec_buffer: if rootdir != / create tmp files on rootdir. 2012-11-17 12:08:25 +01:00
Juan RP
0a082a82c3 xbps_file_exec: don't fail if chroot(2) fails (due to EPERM). 2012-11-17 11:44:14 +01:00
Juan RP
bc894aae1d xbps_metadir_release: don't release obj already released. 2012-11-17 10:53:06 +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
db4b542d40 unpack: typo in previous. 2012-11-15 09:27:41 +01:00
Juan RP
1b217d1906 transaction_ops: shortest static function name. 2012-11-15 09:25:59 +01:00
Juan RP
ce2f45a3df unpack: don't extract pkg props.plist, we use pkg data from repo index. 2012-11-15 09:25:31 +01:00
Juan RP
5c0abc9754 libxbps: remove old code and return early if pkg has no rundeps. 2012-11-15 01:37:09 +01:00
Juan RP
ce3d4f1764 unpack: externalize pkg props dictionary from index. 2012-11-13 14:41:04 +01:00
Juan RP
4945755d53 unpack: don't assert if target file of a symlink doesn't exist, it may happen. 2012-11-12 17:10:02 +01:00
Juan RP
a6c979295f NEWS: typo fix. 2012-11-12 17:09:29 +01:00
Juan RP
2703b55f99 xbps_dictionary_from_archive_entry: faster when plist is already uncompressed. 2012-11-11 16:57:23 +01:00
Juan RP
58333419a0 Shell wildcard patterns can now be used in the PackagesOnHold option. 2012-11-11 16:11:40 +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
f81d8ac1f0 xbps_pkgdb_update: if pkgdb cannot be internalized, create it to simplify code. 2012-11-11 10:03:14 +01:00
Juan RP
df0d5d7330 Get rid of pkg state half-unpacked; not-installed state is good enough. 2012-11-11 09:42:30 +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
0ab60b24c5 xbps_fetch_file: enable fetchRestartCalls. 2012-11-08 09:49:03 +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
05984a31b1 xbps_rpool_sync: new arg to specify the file; bump XBPS_API_VERSION. 2012-11-07 10:37:58 +01:00
Juan RP
e01b9a8756 etc/xbps.conf: fix typos for FetchCacheXXX options. 2012-11-07 10:21:03 +01:00
Juan RP
4e15230c93 repository_sync_index: fix swapped args passed to XBPS_STATE_REPOSYNC. 2012-11-07 10:18:58 +01:00
Juan RP
45b872f75e repository_sync_index: use arg[0-1] in XBPS_STATE_REPOSYNC. 2012-11-07 10:13:54 +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
52cef3e65f Update NEWS and TODO. 2012-11-06 11:11:13 +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
Juan RP
a41f8f2d92 man: s/Void GNU\/Linux/Void Linux/g 2012-11-06 09:55:56 +01:00
Juan RP
737727999b xbps-pkgdb: added a manual page. 2012-11-06 09:54:43 +01:00
Juan RP
310e619ea3 Remove unnecessary variable assignments reported by cppcheck. 2012-11-06 09:28:34 +01:00
Juan RP
c7402a9176 xbps-query/search.c: fix a memleak found by cppcheck. 2012-11-06 09:13:05 +01:00
Juan RP
ef6ed7d8c7 xbps-query: fallback to repos on ENOENT for show modes. 2012-11-05 13:17:15 +01:00
Juan RP
2e649f9315 xbps-query: show usage if no args are set for search or ownedby modes. 2012-11-05 12:12:34 +01:00
Juan RP
1948978dec xbps-create.8: add Xrefs. 2012-11-05 09:57:52 +01:00
Juan RP
f6a4ab353a xbps-install/transaction: remove extra \n in a printf. 2012-11-05 09:53:35 +01:00
Juan RP
caaf885229 xbps-remove: constify longopts; exec trans correctly. 2012-11-05 09:51:34 +01:00
Juan RP
0a7e917d49 manpages: tweaks. 2012-11-05 09:39:10 +01:00
Juan RP
603b0249f1 xbps-remove.8: minor fix. 2012-11-03 11:37:12 +01:00
Juan RP
306273ce7b xbps-remove.8: minor tweaks. 2012-11-03 11:33:55 +01:00
Juan RP
2734ad6d5e xbps-remove.8: extend DESCRIPTION. 2012-11-03 11:29:45 +01:00
Juan RP
b35ae55028 xbps-reconfigure.8: Xr xbps-rindex(8). 2012-11-03 11:21:39 +01:00