Juan RP
0fc6bc0d5c
Makefile: remove dist target (unused and obsolete).
2013-09-26 11:10:31 +02:00
Juan RP
0778328e82
Post release bump to 0.27.
2013-09-25 12:30:05 +02:00
Juan RP
0c16ebf4bf
NEWS: prepare for 0.26.
2013-09-25 11:25:23 +02:00
Juan RP
268d1af8cb
README.md: add "Getting source code" section.
2013-09-25 11:24:46 +02:00
Juan RP
192ffa2d58
Update API documentation and dot files.
2013-09-25 11:15:04 +02:00
Juan RP
4e0c933c7f
NEWS: more tweaks.
2013-09-20 09:03:52 +02:00
Juan RP
14c3f40429
NEWS: sync with reality and misc tweaks.
2013-09-19 08:54:44 +02:00
Juan RP
27db8e89c4
xbps-query: replace -D --defrepo' option with -R' and `--repository=url'.
...
The argument in `--repository' is optional, therefore must be specified
with `=' to work. If no argument is specified, repository mode is enabled
preserving the repository list of configuration file.
2013-09-18 17:13:43 +02:00
Juan RP
2e5501b1a6
NEWS: note last changes.
2013-09-18 16:47:37 +02:00
Juan RP
5e1432f418
Added support to specify multiple repositories via cmdline ( close #17 ).
2013-09-18 16:45:05 +02:00
Juan RP
c514894152
xbps-{install,remove}: remove the stupid rw checks on rootdir/metadir.
2013-09-18 15:43:55 +02:00
Juan RP
023484ca0b
Introduce xbps_{array,pkgdb}_foreach_cb_multi() and use it where appropiate.
...
In some tasks the single threaded implementation outperms the multithreaded
one. Use it where it really makes a difference. The _multi() routines do not
spawn any thread if _SC_NPROCESSORS_ONLN == 1.
Bump XBPS_API_VERSION.
2013-09-17 16:30:13 +02:00
Juan RP
fce411bac6
xbps_rpool_foreach: ignore invalid repos.
2013-09-17 16:24:19 +02:00
Juan RP
e6aade53a0
xbps_repo_get_pkg_revdeps: ignore invalid repos.
2013-09-17 16:19:56 +02:00
Juan RP
12546e4b70
Revert "lib/repo_pkgdeps.c: check for wrong dependencies earlier."
...
This reverts commit eed9c89375 .
2013-09-17 09:04:01 +02:00
Juan RP
ac158ec2f6
lib/transaction_sortdeps.c: fix a comment.
2013-09-16 11:31:56 +02:00
Juan RP
eed9c89375
lib/repo_pkgdeps.c: check for wrong dependencies earlier.
2013-09-16 11:28:55 +02:00
Juan RP
3f376998c2
lib/plist_find.c: remove a noisy/useless dbg printf.
2013-09-16 11:24:09 +02:00
Juan RP
af4e90aae8
xbps-rindex: register pkgs in index-files by pkgname and use xbps_array_foreach_cb().
...
This simplifies accessing/removing pkgs in this dictionary.
2013-09-16 10:41:42 +02:00
Juan RP
98e1687ef5
Re-add all pkg metadata objects to the repository index.
2013-09-16 09:09:56 +02:00
Juan RP
c5acbc7953
mk/prog.mk: set MAN to $(BIN).8 by default.
2013-09-16 08:57:24 +02:00
Juan RP
9d562671ee
configure: embed short hash for the git revision.
2013-09-15 10:34:25 +02:00
Juan RP
0a48738634
bin/xbps-remove/main.c: fix a memleak in the clean-cache code.
2013-09-15 10:25:47 +02:00
Juan RP
4057e4961c
Use C99 for loop initializers.
...
That means that a C99 compiler is now mandatory.
2013-09-15 10:06:49 +02:00
Juan RP
9a9c816552
xbps-query.8: remove dup block.
2013-09-13 09:17:00 +02:00
Juan RP
571d8748b4
lib/package_unpack.c: fix a double free.
2013-08-30 15:34:29 +02:00
Juan RP
010e5df415
lib/transaction_commit.c: add missing arg to xbps_dbg_printf().
2013-08-29 15:49:23 +02:00
Juan RP
f4dc832229
Revert "lib/package_config_files.c: fixed a memleak."
...
This reverts commit c04d54f020 .
2013-08-29 15:30:14 +02:00
Juan RP
da338519e1
Drop INSTALL_STRIPPED, always install files unstripped.
2013-08-29 14:35:08 +02:00
Juan RP
24ff0472dd
Use fs blksize from stat(2)ed file when reading archives.
2013-08-29 14:30:14 +02:00
Juan RP
1bea5725ae
lib/package_script.c: misc cleanups.
2013-08-29 12:13:59 +02:00
Juan RP
20fb38142b
lib/package_unpack.c: fixed two memleaks.
2013-08-29 12:06:04 +02:00
Juan RP
c04d54f020
lib/package_config_files.c: fixed a memleak.
2013-08-29 12:05:59 +02:00
Juan RP
71a602fd27
lib/archive.c: fixed memleaks in error paths; misc cleanups.
2013-08-29 11:57:57 +02:00
Juan RP
6795e840d6
lib/plist_find.c: fix a memleak, misc cleanups.
2013-08-29 11:51:42 +02:00
Juan RP
a039330f3c
Misc cleanups: use __attribute__((__unused__)); remove dead code.
2013-08-29 10:45:30 +02:00
Juan RP
efcb373f96
README: relax libarchive version requirement.
2013-08-19 16:00:45 +02:00
Juan RP
add4484ad8
bin/xbps-query/xbps-query.8: document -H --list-hold-pkgs.
2013-08-18 11:06:45 +02:00
Juan RP
789165339a
Drop useless/unused xbps_add_obj_to_{array,dict} functions.
2013-08-18 10:25:17 +02:00
Juan RP
22ae6295f5
manpages: use github url for bugreports.
2013-08-18 10:17:45 +02:00
Juan RP
11fbffa241
Fix #14 from github (Removing recursively does not respect manual installation mode for dependencies).
2013-08-17 09:50:19 +02:00
Juan RP
1999fbd771
Relax libarchive version requirement to 2.8.0.
2013-08-16 10:26:36 +02:00
Juan RP
84d14286a8
More libarchive-2.x compat.
2013-08-15 11:55:20 +02:00
Juan RP
776b94e6bc
Remove PackagesOnHold from xbps.conf; use xbps-pkgdb -m hold|unhold instead.
...
To put a package on hold mode:
$ xbps-pkgdb -m hold foo
To unhold the package:
$ xbps-pkgdb -m unhold foo
To list packages on hold mode:
$ xbps-query -H
This also close #12 from github.
2013-08-12 14:46:54 +02:00
Juan RP
9c9d5b58dd
Assume 80 columns if TIOCGWINSZ ws.col is bogus (0).
2013-08-10 12:59:59 +02:00
Juan RP
2f9bd4f9a2
bin/xbps-rindex/remove-obsoletes.c: fix use-after-free.
2013-08-07 16:01:59 +02:00
Juan RP
8fa5f15cbb
NEWS: update with recent changes.
2013-07-28 09:46:54 +02:00
Juan RP
4428cac154
xbps-query: ignore non working repos; misc fixes.
2013-07-27 20:02:07 +02:00
Juan RP
49fa951836
xbps_array_foreach_cb: replace an assertion with a real test, for non working repos.
2013-07-27 20:01:23 +02:00
Juan RP
0c7701f2bc
Introduce xbps_array_foreach_cb() and use it in random code.
...
This routine will spawn a thread per core to process N items stored
in the specified array, the last thread gets the remainder of items left.
Results have shown that xbps benefits if there is a considerable amount
of items and number of threads being spawned.
Use it in xbps_pkgdb_foreach_cb(), xbps-pkgdb(8), xbps-query(8)
and xbps-rindex(8).
On UP systems there's no overhead because pthread(3) is not used at all.
WIP! investigate if it can be used in libxbps (xbps_rpool_foreach()),
and finish conversion of xbps-rindex(8) -c.
2013-07-27 09:47:16 +02:00
Juan RP
432067de48
Remove three unused API functions.
2013-07-27 06:12:59 +02:00
Juan RP
84d0e429ab
bin/xbps-query/list.c: simplify list_orphans().
2013-07-27 06:11:48 +02:00
Juan RP
20f2d10527
xbps-query(8): -L now prints all repos, including non working repos ( close #11 ).
2013-07-26 11:42:52 +02:00
Juan RP
e0643acbb0
xbps-query(8): fixed some memleaks in local/remote ownedby mode.
2013-07-21 10:49:30 +02:00
Juan RP
db7dd3fd9b
lib/repo_pkgdeps.c: print correctly missing dependencies.
2013-07-16 08:00:42 +02:00
Juan RP
bb0c3250b1
NEWS: mention regression in xbps-query(8).
2013-07-07 10:00:28 +02:00
Juan RP
6358cf43fc
xbps-query: fix regression in -R, also print repository string object.
2013-07-07 09:59:25 +02:00
Juan RP
7941b225fb
rpool: no need to add repository object; it's already set by the repo code.
2013-07-07 09:58:30 +02:00
Juan RP
ecd15b7d57
Check if an update for conflicting pkg is in the transaction for revdeps in vpkgs.
2013-07-05 10:09:32 +02:00
Juan RP
6e37c02032
Post release version bump to 0.26.
2013-07-05 08:08:52 +02:00
Juan RP
ab34c89fdb
README.md: update for 0.25.
2013-07-05 08:08:34 +02:00
Juan RP
02e1958fac
NEWS: prepare 0.25.
2013-07-05 08:01:37 +02:00
Juan RP
6d87bf04d0
Revert "xbps-rindex: [add] add index-files.plist the first in the repo archive."
...
This reverts commit e76874f513 .
This slows down some ops that were much faster before; will use another approach.
2013-07-04 11:05:42 +02:00
Juan RP
e76874f513
xbps-rindex: [add] add index-files.plist the first in the repo archive.
...
By having index.plist the 2nd entry in archive there are more chances
to skip identical bytes in the archive via rsync.
2013-07-04 03:33:42 +02:00
Juan RP
42ba861e21
lib/fetch: ignore -Wformat-nonliteral with clang.
2013-07-02 08:54:02 +02:00
Juan RP
789c756854
xbps_transaction_revdeps: properly print the broken revdeps on real deps.
2013-07-02 00:47:16 +02:00
Juan RP
1d0a5faff0
include/xbps.h.in: xbps_api.h -> xbps.h
2013-06-29 06:46:46 +02:00
Juan RP
9cfbd10604
configure: --etcdir -> --syconfdir.
2013-06-28 08:55:50 +02:00
Juan RP
47eed214a6
xbps_repo_get_pkg_revdeps: don't continue if arg is a virtual pkg.
2013-06-27 18:14:38 +02:00
Juan RP
f96f1dab19
.gitignore: ignore generated xbps.h
2013-06-27 17:17:47 +02:00
Juan RP
505a933097
Added support to verify reverse dependencies in a transaction.
...
See https://plus.google.com/106812073015308749022/posts/ZXMHimd8iKd
2013-06-27 16:52:31 +02:00
Juan RP
4494e0554d
lib/plist_find.c: typo in comment.
2013-06-27 16:26:19 +02:00
Juan RP
99f37f618a
README.md: more tweaks.
2013-06-21 10:45:22 +02:00
Juan RP
2aa09397b9
README -> README.md
2013-06-21 10:36:55 +02:00
Juan RP
b4bd60cc61
README: update for conversion to markdown.
2013-06-21 10:36:35 +02:00
Juan RP
acbdefbad2
data/libxbps.pc.in: no need to link to proplib anymore.
2013-06-20 12:33:23 +02:00
Juan RP
09e116b7f0
xbps_api.h -> xbps.h
2013-06-20 12:31:02 +02:00
Juan RP
cccc9de7de
NEWS: mention latest changes.
2013-06-20 12:19:48 +02:00
Juan RP
2b7d936118
mk/test.mk: no need to link to proplib anymore.
2013-06-20 11:34:49 +02:00
Juan RP
5642ca6cfc
Update tests to the new API.
2013-06-20 11:33:50 +02:00
Juan RP
52fc384e4e
Fixed some issues/warnings found by clang-analyzer.
2013-06-20 11:25:43 +02:00
Juan RP
42c0766c00
Get rid of libfetch and proplib external dependencies.
...
The list of required external deps is now confuse, libarchive and openssl.
libxbps now includes a wrapper for proplib prefixed with xbps_ rather than prop_.
2013-06-20 10:26:12 +02:00
Juan RP
31efece727
Hide libfetch symbols if using the internal copy.
2013-06-19 11:57:25 +02:00
Juan RP
8f6d400cdd
configure: test if fdatasync(2) is available for internal proplib.
2013-06-19 11:41:49 +02:00
Juan RP
4ef66d99bb
Drop requirement of confuse header for the public API; it's only used by libxbps.
2013-06-19 11:29:04 +02:00
Juan RP
55af300e65
xbps-create: needs stdarg.h.
2013-06-19 11:28:51 +02:00
Juan RP
d419f8ac2a
Move fetch.h to lib/fetch.
2013-06-19 11:03:03 +02:00
Juan RP
0d22fe362c
Increase default libfetch cache limits.
2013-06-19 09:39:39 +02:00
Juan RP
02a11ed08c
xbps-rindex: add: remove unused headers; prop_array_count checks for NULL pointers.
2013-06-19 09:20:44 +02:00
Juan RP
03575cecd0
xbps-create: s/size_t/unsigned int/ to iter in prop_arrays.
2013-06-15 10:29:43 +02:00
Juan RP
ee9b799822
Make sure that only 1 thread can inject the vpkg config files.
2013-06-14 12:31:43 +02:00
Juan RP
9d80524a34
Minor optimization: no need to check if obj is NULL, prop_object_type() does that already.
2013-06-14 12:22:29 +02:00
Juan RP
9c44411722
NEWS: mention recent changes.
2013-06-14 10:32:28 +02:00
Juan RP
3abe48b68a
Introduce xbps_repo_get_pkg_plist() and use it in xbps-query -R.
2013-06-14 10:22:10 +02:00
Juan RP
2c03e1c9a8
Read virtual pkg config files only when it's necessary.
2013-06-14 10:00:33 +02:00
Juan RP
5c3985ddf1
xbps-query: search: simplify and use xbps_match_virtual_pkg_in_dict().
2013-06-14 09:40:10 +02:00
Juan RP
89ded69bed
xbps-query: use get_maxcols() from xbps-install.
2013-06-14 09:33:27 +02:00
Juan RP
5f2bba7f4e
Move functionality to resolve revdeps from repos to libxbps.
2013-06-14 08:13:51 +02:00
Juan RP
8a05bc5f24
xbps-dgraph: installed_size obj is in bytes; fix a comment.
2013-06-14 05:12:15 +02:00
Juan RP
6e6b7560f3
NEWS: mention xbps-dgraph changes.
2013-06-13 17:46:58 +02:00