Juan RP
0edba07106
xbps_remove_pkg: fix dbg printf args.
2012-11-19 14:45:09 +01:00
Juan RP
34ae90f1c3
xbps_remove_pkg: force pkgdb flush after unregister.
2012-11-19 14:40:41 +01:00
Juan RP
e861cb5331
xbps_transaction_commit: add a dbg printf.
2012-11-19 14:38:06 +01:00
Juan RP
5397dd4937
xbps_remove_pkg: handle all cases where pkg meta plist is unavail.
2012-11-19 14:08:01 +01:00
Juan RP
1147e7ce3c
xbps_find_pkg_orphans: there's no need to check pkg state, any state is ok.
2012-11-19 14:07:05 +01:00
Juan RP
556bbd495e
xbps_remove_pkg: recover from an assertion if pkg meta plist doesn't exist.
2012-11-19 13:29:09 +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
bf2d97a067
xbps_init: simplify previous and use xbps_xasprintf().
2012-11-19 12:15:32 +01:00
Juan RP
b894a5eca3
Accept relative rootdir via xbps_handle::rootdir (found by pancake).
2012-11-19 12:12:38 +01:00
Juan RP
37b7cccc83
pkg_metadir: this must use HASH_ADD_STR instead!
2012-11-18 17:08:45 +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
6094bbc6ea
pkg_metadir: fix some issues I've found while finding obsolete files.
2012-11-18 12:07:43 +01:00
Juan RP
e08c258967
xbps_remove_pkg: no need to release pkgd from metadir.
2012-11-18 12:06:46 +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
235416b48f
pkg_metadir: redo previous without memleaks.
2012-11-18 04:06:13 +01:00
Juan RP
8d9f5b65e3
pkg_metadir: make sure to return a valid pkgd from the hash table.
2012-11-18 03:49:29 +01:00
Juan RP
46f7a808b4
xbps_metadir: use an hash table (via uthash): 15s vs 1m10s.
2012-11-18 02:38:24 +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
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