Juan RP
1741019b90
lib/transaction_sortdeps.c: remove bogus assignment in pkgdep_release().
2013-04-04 09:57:59 +02:00
Juan RP
c753eae9f7
lib/package_unpack.c: fix two possible memleaks.
2013-04-04 09:55:35 +02:00
Juan RP
e29f2216e2
xbps-rindex: fix memleaks in error paths.
2013-04-04 09:55:12 +02:00
Juan RP
d536ad39ff
xbps-pkgdb: fix two meamleaks in error paths.
2013-04-04 09:54:53 +02:00
Juan RP
dbf4bb184e
xbps_transaction_remove_pkg: fix uninitialized argument value reported by scan-build.
2013-04-04 09:22:40 +02:00
Juan RP
0a1ea51e4e
lib/package_unpack.c: fix a meamleak in error path.
2013-04-04 09:17:32 +02:00
Juan RP
e844bc1ad5
xbps_callback_array_iter_reverse: initialize rv (fixes garbage return value).
2013-04-04 09:13:52 +02:00
Juan RP
ae254e9b06
bin/xbps-query/list.c: return error if pkgver or short_desc are NULL.
2013-04-04 09:11:37 +02:00
Juan RP
8736ef6c5a
xbps-create: fix issue #5 from github: initialize setlocale.
2013-04-01 10:49:25 +02:00
Juan RP
e4a3342c39
xbps_entry_install_conf_file: pass correct number of args to xbps_set_cb_state().
2013-03-27 17:22:44 +01:00
Juan RP
ab8cb56c24
fetch_cb.c: fixed casts when computing ETA.
2013-03-27 16:14:23 +01:00
Juan RP
069f65a2a5
NEWS: mention 2 last items.
2013-03-26 10:56:01 +01:00
Juan RP
7c4f20ba89
lib/transaction_commit.c: fix a use-after-free in state cb (found by ojab).
2013-03-26 10:35:20 +01:00
Juan RP
e25216822b
xbps-uhelper: make the 'version' target also match virtual pkgs.
2013-03-25 21:11:30 +01:00
Juan RP
4411ff82ac
Post release bump to 0.23.
2013-03-23 08:33:38 +01:00
Juan RP
ca6cfa252c
NEWS: update for 0.22.
2013-03-23 08:24:34 +01:00
Juan RP
59006fe86c
xbps-create: added --build-options option, mainly for xbps-src.
...
This expects a string with the list of used build options.
2013-03-23 08:18:06 +01:00
Juan RP
8d6f3b5029
unpack: use lchown(2) to set proper uid/gid to symlinks.
2013-03-17 17:13:07 +01:00
Juan RP
70b89a88cc
xbps-query: make -o (ownedby) follow symlinks; close issue #4 from github.
2013-03-17 10:59:40 +01:00
Juan RP
57bb7baf5e
unpack: use archive_entry_{filetype,uid,gid,mode} rather than stored struct stat.
2013-03-15 13:18:30 +01:00
Juan RP
a6c26f6c12
xbps-create: also set st_{uid,gid} to 0:0 in archived files.
2013-03-15 13:14:57 +01:00
Juan RP
7491c0e584
xbps-create: set root:root if e[gu]id == st.st_e[gu]id in package files.
...
The rational is that packages should have proper perms to be installed
globally in a system as root, and fakeroot is useless when generating
packages with xbps-create when it's statically build.
2013-03-15 09:31:15 +01:00
Juan RP
dd9cf9737b
xbps-query: fix segfault when listing unexistent package files.
2013-03-13 23:15:42 +01:00
Juan RP
b5d141e28c
When checking for obsolete files ignore unexistent files.
2013-03-13 22:08:13 +01:00
Juan RP
db5ddf0578
configure: post release version bump (welcome to 0.22).
2013-03-11 15:57:56 +01:00
Juan RP
7fd3e23762
NEWS: another item.
2013-03-11 15:51:58 +01:00
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
430b224f58
Add new kyua tests for xbps_find_pkg_orphans().
2013-03-11 12:59:31 +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
4d7c51c368
bin/xbps-install/transaction.c: fix -n (dry-run) output for removed pkgs.
2013-03-11 12:12:03 +01:00
Juan RP
bc6aa52f33
Add some tests for pkgdb.
2013-03-10 10:08:58 +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
3e2aac74d2
xbps-query: print filename-{sha256,size} objs from index in repo mode.
2013-03-08 21:06:55 +01:00
Juan RP
dfe42ce7e3
xbps-query: -p expects an argument; show usage() otherwise.
2013-03-08 20:23:13 +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
f13d0cdb33
bin/xbps-install/transaction.c: remove extra newlines.
2013-03-08 10:01:19 +01:00
Juan RP
9c692c895c
etc/xbps.conf: improve PackagesOnHold description.
2013-03-08 09:58:32 +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