Commit Graph

209 Commits

Author SHA1 Message Date
Juan RP
54b6cc7ec1 xbps-{bin,repo}: add -B flag to set default repo if xbps.conf not found.
(cherry picked from commit 75eac1a1426040a833e0b10e208f2e55fa359532)
2012-09-29 19:10:48 +02:00
Juan RP
7714f0f6c5 bin: print usage() in stdout.
(cherry picked from commit b090e1a0bd32cabd8fe81bd756d419ee4b170ef7)
2012-09-29 19:08:03 +02:00
Juan RP
83688cf8ec xbps-{bin,repo}: fixed crash in 'show' target reported by pancake.
(cherry picked from commit 4129a08cef7139b30b41ac659f35f9d494c2d918)
2012-09-29 19:04:41 +02:00
Juan RP
7d4ecbb0ab xbps-repo: index-add: look for pkg in index matching arch or noarch. 2012-08-20 14:58:38 +02:00
Juan RP
3c379ff78e xbps-repo: remove repo index file locking, it's unreliable under NFS. 2012-08-16 10:59:54 +02:00
Juan RP
a037b89042 xbps-repo: really wait 30 secs max to acquire repo file lock. 2012-08-14 09:36:44 +02:00
Juan RP
2e594caf8a xbps-repo(8): the 'show-deps' target only lists deps and not repo/pkgver. 2012-08-10 08:43:51 +02:00
Juan RP
c34e564327 xbps-repo: more exact pkg extension check. 2012-08-07 10:37:52 +02:00
Juan RP
f0ab396036 xbps-{bin,repo}: ignore ENOENT when checking write perms in {root,meta,cache}dir. 2012-08-03 10:58:16 +02:00
Juan RP
68a0223c4e xbps-repo: fix the 'search' target to show a consistent output for inst/uninst pkgs.
Fixes issue #28.
2012-08-02 14:37:15 +02:00
Juan RP
3a247bd5cb xbps-{bin,repo}: make sure that user has write permission on {root,meta,cache}dir.
Fixes issue #27
2012-08-02 12:20:18 +02:00
Juan RP
cae219c4de xbps-repo: indent pkgs from all repos with longest pkgver found. 2012-08-01 08:25:15 +02:00
Juan RP
1be90e57d7 xbps-{bin,repo}: wrap long lines for list, pkg-list and search targets.
Fixes issue #26
2012-07-31 17:50:50 +02:00
Juan RP
eb75041b25 xbps-repo(8): the search target now shows which pkgs are currently installed. 2012-07-31 10:34:10 +02:00
Juan RP
577ae731bb xbps-repo: index-clean: simplify code. 2012-07-22 11:45:17 +02:00
Juan RP
5a120e346e xbps-repo: new 'remove-obsoletes' target to remove obsolete pkgs in a local repo. 2012-07-22 10:48:29 +02:00
Juan RP
f0c96aac65 xbps-repo: index-clean now also removes obsolete pkgs found in repo. 2012-07-22 10:21:49 +02:00
Juan RP
adc6ce9d22 xbps-repo: [index] use proper arch obj to remove old entry. 2012-07-21 22:23:45 +02:00
Juan RP
29f9724ba0 xbps-repo: properly remove (no)arch old entry/binpkg from index. 2012-07-21 21:50:16 +02:00
Juan RP
bf7324f7a4 xbps-repo: mention index-{add,clean} in usage(). 2012-07-18 15:06:47 +02:00
Juan RP
674adf64a3 xbps-repo: remove old binpkg symlinks too, fix index-files. 2012-07-17 13:10:34 +02:00
Juan RP
8eba2d7ea3 xbps-repo: replaced 'genindex' target with 'index-{add,clean}'.
See the NEWS file for more information.
2012-07-17 12:31:04 +02:00
Juan RP
f1ad8a95de xbps-repo: fixed issue 24 (xbps-src make-repoidx is doing something wrong). 2012-06-30 11:10:00 +02:00
Juan RP
5cb0d17f8e xbps-repo: [clean] print err msg when unlink(2) fails. 2012-06-19 10:55:42 +02:00
Juan RP
f4e97228c8 xbps-repo: [clean] do not fail if cachedir does not exist, update for new API. 2012-06-19 10:52:57 +02:00
Juan RP
3e93d235ff xbps-{bin,repo}: strlcpy -> memcpy. 2012-06-18 10:42:24 +02:00
Juan RP
ad766cd538 xbps-repo: fixed regression in the 'clean' target. 2012-06-16 09:32:26 +02:00
Juan RP
068cab8d20 libxbps: performance improvements by caching the most accessed paths.
1- We can cache the result of the first xbps_pkgdb_init() when it fails
   and avoid the malloc/free/access from it.
2- We cache the uname(2) result into a private var in xbps_handle and
   use it in xbps_pkg_arch_match().

This improves performance by ~5% approx and it's close as it was before
introducing the repository index format 1.5.
2012-06-15 15:33:11 +02:00
Juan RP
3e9e87fc2a libxbps: require a pointer to xbps_handle in functions that need it.
This removes 2 global vars from lib/initend.c and easier to know
what functions require access to xbps_handle.
2012-06-14 08:22:11 +02:00
Juan RP
efefa000b2 xbps_dictionary_metadata_plist_by_url: only accept exact matches. 2012-06-05 20:53:15 +02:00
Juan RP
1244d663d8 xbps-repo.8: rewording. 2012-06-05 14:42:03 +02:00
Juan RP
21060384d3 xbps-repo/index.c: misc cosmetic change. 2012-06-02 16:51:22 +02:00
Juan RP
06034ea928 xbps-repo: index: don't write plist if no changes were made. 2012-06-01 17:03:05 +02:00
Juan RP
3399184511 xbps-repo: genindex target now removes any obsolete binpkg not registered in index. 2012-06-01 16:37:44 +02:00
Juan RP
0c52f3cce6 xbps-repo.8: improve description of 'genindex' target. 2012-06-01 15:45:23 +02:00
Juan RP
992aeeee4a xbps-repo: typo build fix. 2012-06-01 15:04:29 +02:00
Juan RP
981b13bd5a xbps-repo: 'sync' and 'pkg-list' target now accept a repository URI argument.
If set, only the matching repository will be used for the task.
2012-06-01 15:02:06 +02:00
Juan RP
ba84f82e66 xbps-repo.8: update. 2012-06-01 14:23:23 +02:00
Juan RP
b20dffd2c0 xbps-repo: misc fixes/improvements to index{,-files}.c code. 2012-06-01 10:57:58 +02:00
Juan RP
65b5e328d8 xbps-repo: fixed index-files generation, this time for real! 2012-06-01 00:31:18 +02:00
Juan RP
ff2e434b56 xbps-repo: properly fix index-files update. 2012-05-31 23:48:58 +02:00
Juan RP
356bd655cf xbps-repo: fixed 'genindex' target when removing obsoletes in index-files. 2012-05-31 17:34:17 +02:00
Juan RP
7289547432 Welcome "repository index format 1.5". See NEWS for information. 2012-05-31 16:29:56 +02:00
Juan RP
922ee1f1b6 libxbps: rename xbps_repository_pool_xxx to xbps_rpool_xxx. 2012-05-30 10:56:32 +02:00
Juan RP
fa7bee1164 xbps-repo: [pkg-list] do not print repo url if index is specified. 2012-05-29 16:17:48 +02:00
Juan RP
f7c49a706c xbps-repo(8): new target 'clean': removes obsolete binpkgs from cachedir. 2012-05-05 10:07:47 +02:00
Juan RP
93c5536e36 xbps-{bin,repo}: remove dead code. 2012-04-12 13:05:13 +02:00
Juan RP
d4f623e7e7 Commit Kyua/ATF test suite for libxbps. 2012-03-12 15:23:04 +01:00
Juan RP
8c6b335ca8 xbps-{bin,repo}: redirect error messages to stderr. 2012-02-25 10:30:15 +01:00
Juan RP
fd5d8b9f51 xbps-repo.8: sync with reality. 2012-02-20 16:02:42 +01:00