Commit Graph
100 Commits
Author SHA1 Message Date
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
Juan RP 35f468fa55 xbps-reconfigure: added a manual page. 2012-11-03 11:18:10 +01:00
Juan RP 611d529cb0 xbps-remove: added a manual page. 2012-11-03 10:47:03 +01:00
Juan RP b11d18a54f xbps-rindex: added a manual page. 2012-11-03 10:30:26 +01:00
Juan RP 4bc718b91b xbps-install: state_cb.c: s/xbps-bin/xbps-install/g. 2012-11-03 09:48:16 +01:00
Juan RP 714bacb0e4 xbps-remove: avoid xbps-install/state_cb.c dependency. 2012-11-03 09:47:28 +01:00
Juan RP d61e12d75e xbps-reconfigure: avoid xbps-install/state_cb.c dependency. 2012-11-03 09:43:28 +01:00
Juan RP 0fbe845e32 mk/prog.mk: remove all object files. 2012-11-03 09:42:51 +01:00
Juan RP a0d4a21a1d xbps-install: fixed some issues; remove unused headers. 2012-11-02 15:24:48 +01:00
Juan RP b05ce9fe57 New utilities: xbps-{install,pkgdb,query,reconfigure,rindex} (WIP). 2012-11-02 15:04:25 +01:00
Juan RP 7fa8207cf3 xbps-create: be consistent with options, minor fixes. 2012-11-02 15:03:33 +01:00
Juan RP 03567ecb70 unpack: correctly take into account rootdir while checking symlinks. 2012-10-27 10:36:39 +02:00
Juan RP 978013bfbf unpack: match correctly symlinks with absolute path. 2012-10-27 09:42:26 +02:00
Juan RP 264c704529 unpack: do not use realpath(3) on uninstalled symlinks. 2012-10-27 09:36:28 +02:00
Juan RP c28f882d5c unpack: misc improvements for previous. 2012-10-26 14:32:04 +02:00
Juan RP c58ca952a8 unpack: convert printf added in previous to xbps_dbg_printf. 2012-10-26 14:22:18 +02:00
Juan RP 7fdae2d6dc unpack: handle another case of relative symlink. 2012-10-26 14:17:31 +02:00
Juan RP a5707e5b8d Bump XBPS_API_VERSION for latest changes in libxbps behaviour. 2012-10-26 11:35:01 +02:00
Juan RP 20078259e2 NEWS: mention latest changes. 2012-10-26 11:34:47 +02:00
Juan RP d31a3d205a unpack: use lstat() for symlinks, respect uid/gid if euid == 0, some fixes. 2012-10-26 11:25:17 +02:00
Juan RP e3d876ade0 pkgdb: some fixes for e545429fa1. 2012-10-26 11:05:17 +02:00
Juan RP 4023c8115b unpack: improvements to handle more cases of modified files.
- Do not unpack unmodified symlinks.
- Do not unpack files that only differ in mode, just chmod(2) new perms.
- Do not create pkg's metadata dir if this already exists.
2012-10-26 10:27:24 +02:00
Juan RP e545429fa1 pkgdb: if plist from storage and memory do not differ do not flush to storage. 2012-10-26 10:25:14 +02:00
Juan RP 3e7f35bed1 xbps_configure_pkg: do not flush pkgdb if state hasn't been changed. 2012-10-26 10:24:26 +02:00
Juan RP 89dadb0f20 While checking conf files and there were no changes, do not unpack file from binpkg. 2012-10-26 10:23:12 +02:00
Juan RP d99c505811 requiredby: skip adding same entry if already exists. 2012-10-26 09:44:07 +02:00
Juan RP 9e11ea950a Do not inherit unneeded objs from trans dictionary onto pkg's pkgdb dictionary. 2012-10-25 09:29:56 +02:00
Juan RP 863f12e349 Improved finding obsolete files while upgrading pkgs. 2012-10-24 07:45:00 +02:00
Juan RP 56d704f733 xbps-bin/check: do not warn if pkg's meta files plist is empty, it is valid. 2012-10-24 07:31:59 +02:00
Juan RP 83a84b5dcd TODO: update. 2012-10-18 10:39:51 +02:00
Juan RP 922dbbb85b NEWS: mention recent changes. 2012-10-09 10:07:47 +02:00
Juan RP 22a86d82f8 Added support for installing exact dependencies, i.e pkg X depends on 'Y-1.0_1'. 2012-10-09 07:35:59 +02:00
Juan RP ebc0f27ae1 Do not add to the queue a pkgdep that has been already added via a vpkg.
The problem was after merging udev into systemd, udev is now a virtual pkg
and another dependency was requiring it and added systemd (real pkg) to
the list, but later in the sorting phase systemd was added again breaking
the dependency order.
2012-10-06 10:34:29 +02:00
Juan RP c158acefac Revert "transaction: keep last dep and remove dup matches while sorting deps."
This reverts commit b764f8e19a.
2012-10-06 10:01:37 +02:00
Juan RP 6592164010 xbps_api.h.in: bump XBPS_APIVER. 2012-10-06 09:23:27 +02:00
Juan RP b764f8e19a transaction: keep last dep and remove dup matches while sorting deps.
This bug has been uncovered due to udev -> systemd merge.
2012-10-06 09:21:26 +02:00
Juan RP f8450f9bd7 xbps-create: use mmap(2). 2012-10-04 17:13:33 +02:00
Juan RP 09863ae669 .gitignore: ignore generated xbps_api.h file. 2012-10-04 12:05:39 +02:00
Juan RP d59ad72ee4 xbps-bin(8): the 'check' target now handles symlinks correctly. 2012-10-04 12:05:04 +02:00
Juan RP 056f40da3f NEWS: mention latest fix for xbps-create(8). 2012-10-04 10:09:49 +02:00
Juan RP 42c21e1c3c xbps-create: if a symlink points to an unexistent file store symlink target as is.
Seen in recent builds when building the systemd binpkg:

[chroot] => Building systemd-194_1.x86_64.xbps...
xbps-create.real: main.c:219: ftw_cb: Assertion `p' failed.

Which was asserting in a symlink that was pointing to a file provided by the udev
pkg, therefore realpath(3) failed.
2012-10-04 09:40:52 +02:00
Juan RP b13df00ded Use a common place to set XBPS_VERSION. 2012-10-03 10:10:20 +02:00
Juan RP 5413a4ec50 NEWS: prepare for 0.17. 2012-10-02 11:09:16 +02:00
Juan RP 9f41661726 xbps-create: added manpage. 2012-10-02 10:14:20 +02:00
Juan RP fd7c5e7bfe NEWS: another item. 2012-10-02 09:48:49 +02:00
Juan RP d38dfdd19a libxbps: unpack: before extracting re-set entry_pname. 2012-10-01 16:41:50 +02:00
Juan RP ba6a459786 NEWS: add some more items. 2012-10-01 15:16:34 +02:00
Juan RP bdeeaa46b8 libxbps: unpack: simplify file hash matching code. 2012-09-30 17:07:51 +02:00
Juan RP 7909f597cb xbps_path_from_repository_uri: do not look for binpkgs in repo arch dirs anymore. 2012-09-30 10:13:06 +02:00
Juan RP 154337ceab xbps-repo: remove-obsoletes: remove broken binpkgs (when plist cannot be internalized). 2012-09-30 10:08:21 +02:00
Juan RP 5228b3fbf3 remove_obsoletes: deal with unexistent arrays in both dictionaries. 2012-09-30 08:57:57 +02:00
Juan RP 0ab888a79c xbps-repo: no need to release dict from xbps_rpool_xxx. 2012-09-30 08:11:51 +02:00
Juan RP f7a4718de9 xbps_rpool_dictionary_metadata_plist: do not release dictionary without refcounts! 2012-09-30 08:10:49 +02:00
Juan RP 1d7fab2abd xbps-create: remove -d --destdir option and require this as argument. 2012-09-30 07:12:31 +02:00
Juan RP 9c15f103e1 lib/package_unpack: simplify and externalize pkg's plists uncompressed. 2012-09-29 20:49:51 +02:00
Juan RP 092be04783 pkgdb: flush uncompressed pkgdb for performance reasons. 2012-09-29 20:28:39 +02:00