Juan RP
5efa1de8d5
lib/package_unpack.c: no need to use a var just to check lstat() rval.
2013-03-11 14:06:47 +01:00
Juan RP
a92863cb62
xbps_find_pkg_orphans: remove workaround for target pkgs; ignore unknown pkgs.
2013-03-11 12:13:42 +01:00
Juan RP
0845d6cae3
xbps_transaction_remove_pkg: handle correctly target pkg.
2013-03-11 12:13:02 +01:00
Juan RP
b9888fd7be
xbps_match_virtual_pkg_in_dict: add support to match vpkgs with exact version.
2013-03-10 10:07:54 +01:00
Juan RP
8fce81cc9f
pkgdb: do not add dups in revdeps generation; remove old code.
2013-03-10 08:58:37 +01:00
Juan RP
356f451d17
Renameed lib/package_remove_obsoletes.c -> package_find_obsoletes.c.
2013-03-09 17:21:27 +01:00
Juan RP
fe922ace4c
Merge portable proplib 0.6.3.
2013-03-09 16:41:40 +01:00
Juan RP
84745dfe33
xbps_file_hash: remove madvise usage (no gain irl).
2013-03-09 16:22:41 +01:00
Juan RP
b976a45aed
New code to find pkg obsolete files, with a proper kyua test.
...
Previous code incorrectly found obsolete files in this case:
(curpkg) - in files: /etc/foo.conf
(newpkg) - in conf_files: /etc/foo.conf
and removed this file because the code couldn't find it in the same
array. The new code fixes this case and compares the whole pkg filelist.
2013-03-09 13:30:56 +01:00
Juan RP
e2b303363b
lib/package_unpack.c: fix a memleak.
2013-03-09 11:07:14 +01:00
Juan RP
5885543728
xbps_rindex_sync: simplify.
2013-03-09 10:43:50 +01:00
Juan RP
f9fc39fcdc
Repair xbps_find_pkg_orphans() after pkgdb 0.21 format switch.
...
The problem was that pkgdb is now a dictionary, thus this contains
an unordered set of objects, therefore we cannot depend in the order
anymore.
2013-03-09 09:56:36 +01:00
Juan RP
c504a73f08
Re-use pkgname from unpack to handle config files.
2013-03-08 10:11:16 +01:00
Juan RP
faacbd4a96
lib/package_unpack.c: fix xbps_entry_install_conf_file() args.
2013-03-08 10:07:48 +01:00
Juan RP
50ea03df2a
Revert code to update xbps independently; I'll use another way to implement this.
2013-03-08 09:44:57 +01:00
Juan RP
f5f6f50e27
lib/external/fexec.c: add some parens so that expression is evaluated correctly.
2013-03-07 20:15:16 +01:00
Juan RP
5eddf04898
Ignore executing install/remove scripts if XBPS_TARGET_ARCH is set.
...
Instead a two stage approach is necessary when packages for target arch
are installed:
- XBPS_TARGET_ARCH=arch xbps-install foo <- only unpack
- xbps-reconfigure -a <- configure natively or via an emulator
2013-03-07 18:08:12 +01:00
Juan RP
fd7153fe5c
lib/external/fexec.c: error out if chroot/chdir fails, ignore target_arch.
2013-03-07 18:07:47 +01:00
Juan RP
bcae7e83aa
lib/package_unpack.c: pass pkgver to xbps_pkg_exec_buffer() not pkgname.
2013-03-07 12:01:07 +01:00
Juan RP
98adbf34a1
xbps_pkg_exec_buffer: pass correct args to the install/remove scripts.
2013-03-07 11:56:08 +01:00
Juan RP
7e2d5344d3
lib/package_unpack.c: pass correct number of args to xbps_set_cb_state().
2013-03-07 11:52:47 +01:00
Juan RP
0a1859987a
Respect automatic-install mode from pkgdb in transaction updates.
...
Also simplify register/unregister and remove useless state definitions.
2013-03-07 10:03:59 +01:00
Juan RP
90b6803825
Introduce XBPS_STATE_CONFIGURE_DONE and use it in xbps-reconfigure(8).
2013-03-07 09:24:04 +01:00
Juan RP
37263d63c9
lib/transaction_ops.c: only call xbps_pkg_name() when it's really necessary.
2013-03-07 09:12:47 +01:00
Juan RP
5409e51822
lib/package_conflicts.c: adapt to pkgdb 0.21 format.
2013-03-06 12:55:00 +01:00
Juan RP
301dfe0043
xbps_configure_pkg: fail gracefully if metadata cannot be read.
2013-03-05 17:20:29 +01:00
Juan RP
e36bedb036
Fix regressions in xbps_unpack_binary_pkg().
2013-03-05 06:42:25 +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
42274f939c
Set _BSD_SOURCE before including string.h to get strlc{at,py} with musl.
2013-03-03 08:21:00 +01:00
Juan RP
8b5f6d7b65
When running scripts exit from child with errno from execv().
2013-02-26 09:12:44 +01:00
Juan RP
26778964a4
When executing scripts don't chroot if XBPS_TARGET_ARCH is set.
2013-02-25 23:00:20 +01:00
Juan RP
e525e2c251
Drop posix_fadvise(3) completely before unpacking.
...
Some systems with small memory might fail to make the preallocation,
as seen in the rpi. It doesn't give us too much gain anyway.
2013-02-20 12:59:11 +01:00
Juan RP
ae7b76e245
xbps_fetch_file: don't fsync(3) before closing fd; slowdowns considerably slow storage.
2013-02-20 10:46:21 +01:00
Juan RP
eb61aabca8
xbps_remove_pkg: fix a double free.
2013-02-19 14:58:56 +01:00
Juan RP
2b5d3bb8f4
libxbps: when resolving deps, ignore all of them that depend on the origin pkg.
2013-02-07 18:50:55 +01:00
Juan RP
178a6b58ae
Remove another transaction obj from pkgdb and make xbps-pkgdb catch it.
2013-02-07 17:49:28 +01:00
Juan RP
d8769c4873
Workaround fix for 'xbps-install -yf xbps <-> xbps-git'.
2013-02-05 12:10:24 +01:00
Juan RP
6c96fe32cc
lib/initend.c: print dbg msg about successful vpkg conf files read.
2013-02-05 09:32:43 +01:00
Juan RP
a8e8e8fd5d
xbps_remove_pkg: ignore ELOOP in realpath() when checking symlinks.
...
Probably it is a broken symlink, so we don't have to care about it.
2013-02-04 16:35:15 +01:00
Juan RP
90cde72283
Add support to switch arch via XBPS_TARGET_ARCH env var.
2013-02-03 09:45:03 +01:00
Juan RP
0812ef2c35
Properly fix fa1d543dfa
.
2013-02-02 18:15:00 +01:00
Juan RP
5eb6206c12
Fix inverted test in previous commit... sigh.
2013-02-02 14:45:47 +01:00
Juan RP
fa1d543dfa
Ignore package conflicts against themselves, due to virtual packages.
2013-02-02 14:34:55 +01:00
Juan RP
5c1688944d
xbps-install: make -f preserve conf files; use it twice to overwrite all files.
2013-02-02 11:30:42 +01:00
Juan RP
7d8f0bb686
lib/compat/vasprintf.c: make this build and fix sign-compare warnings.
2013-02-02 01:31:20 +01:00
Juan RP
bdcdb9f1a0
xbps_fetch_file: don't check for file truncation if server answers with invalid info.
2013-02-01 13:40:27 +01:00
Juan RP
42e0f19bbe
Fix package conflicts detection (regression from b9136c61c9
).
2013-02-01 12:41:27 +01:00
Juan RP
9cf104498e
lib/initend.c: convert a noisy printf to dbg_printf.
2013-01-31 09:42:22 +01:00
Juan RP
7360a6fca3
Fix previous; only use arg0 in client cb.
2013-01-31 09:41:43 +01:00
Juan RP
d2178b70e3
xbps_rindex_sync: pass correct file to the state cb.
2013-01-31 09:33:06 +01:00