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
7b2942e789
xbps-dgraph: only add revdeps when it's necessary.
2013-06-13 17:44:44 +02:00
Juan RP
6b397198bf
xbps-dgraph: completely updated and working as before.
2013-06-13 17:41:16 +02:00
Juan RP
f868dd7816
xbps-dgraph: make this work again; needs more changes yet.
2013-06-12 10:34:01 +02:00
Juan RP
db1efb3aa6
Relax memory requirements on 64bit platforms; fix two memleaks.
2013-06-12 10:04:10 +02:00
Juan RP
6a9e394a60
xbps-query(8): extend 734a2c3
to also match with pkgpatterns.
2013-06-12 04:48:36 +02:00
Juan RP
5f02790ac7
xbps-query(8): fix regression introduced in 734a2c3
.
2013-06-11 16:41:36 +02:00
Juan RP
b646554aea
xbps-query: formatting tweaks for PROP_TYPE_ARRAY objects.
2013-06-11 16:26:27 +02:00
Juan RP
734a2c3c2b
xbps-query(8): added support to find revdeps for virtual pkgs in repository mode.
2013-06-11 16:18:40 +02:00
Juan RP
99be698979
Use a single file to store repository data.
...
This is just the starting point to extend repositories with PGP signatures.
2013-06-10 10:28:39 +02:00
Juan RP
fa9d3471d9
xbps-create: improve d6605e1b97
(sanitize destdir to resolve target files in symlinks).
...
Previously in d6605e1b97
if destdir had trailing '/' the behavior
of detecting target files in symlinks was changed slightly.
2013-05-27 13:03:40 +02:00
Juan RP
d6605e1b97
xbps-create(8): calculate correctly target file for relative symlinks.
2013-05-27 10:27:55 +02:00
Juan RP
15b2258b77
xbps-pkgdb: fix issue #9 (remove old code that broke pkgdb mem vs disk comparisions).
2013-05-16 17:16:39 +02:00
Juan RP
91c08bfe75
bin/xbps-query/ownedby.c: simply match patterns with fnmatch(3).
2013-05-13 15:10:47 +02:00
Juan RP
53217fd51b
xbps-rindex: added -f --force flag to forcefully register a pkg with -a --add.
2013-05-02 10:46:30 +02:00
Juan RP
111184ea84
xbps-pkgdb: change symlink checks to warning messages not errors.
2013-04-19 10:15:44 +02:00
Juan RP
5fd7565e6c
xbps-install(8): -R now overrides the repository list set in a configuration file.
...
Now -R can be used independently if a configuration file exists or not.
2013-04-18 18:17:14 +02:00
Juan RP
3a5d6b1376
xbps-rindex: fixed writing repo index-files (regression added in e29f221
).
2013-04-17 14:20:48 +02:00
Juan RP
a0d50f542a
xbps-install: revert fa40928026
.
...
If a package is already installed and it's being installed without -f (force),
xbps-install must return EEXIST.
xbps-src really expects this to ignore duplicated build dependencies.
2013-04-15 21:02:33 +02:00
Juan RP
68770053e9
xbps-rindex: fixed cleaning obsolete entries from index-files in clean mode (-c).
2013-04-06 21:30:31 +02:00
Juan RP
1f5bb03daf
bin/xbps-pkgdb/check_pkg_files.c: remove bogus assignment.
2013-04-04 10:17:00 +02:00
Juan RP
074a2f0747
bin/xbps-rindex/index-add.c: remove completely unused var.
2013-04-04 10:09:52 +02:00
Juan RP
ab445ec307
bin/xbps-pkgdb/check_pkg_files.c: no need to initialize rv.
2013-04-04 10:09:36 +02:00
Juan RP
6ac76f68ed
bin/xbps-rindex/index-add.c: remove unused variable.
2013-04-04 10:04:45 +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
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
ab8cb56c24
fetch_cb.c: fixed casts when computing ETA.
2013-03-27 16:14:23 +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
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
70b89a88cc
xbps-query: make -o (ownedby) follow symlinks; close issue #4 from github.
2013-03-17 10:59:40 +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
4d7c51c368
bin/xbps-install/transaction.c: fix -n (dry-run) output for removed pkgs.
2013-03-11 12:12:03 +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
f13d0cdb33
bin/xbps-install/transaction.c: remove extra newlines.
2013-03-08 10:01:19 +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
59105ab995
xbps-remove: make XBPS_STATE_REMOVE_FILE_OBSOLETE state silent, only show errors.
2013-03-07 11:32:22 +01:00
Juan RP
bb17958212
xbps-install: remove dead code.
2013-03-07 11:31:55 +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
5f71d1e40d
xbps-reconfigure: also syslog XBPS_STATE_CONFIGURE state.
2013-03-06 12:02:04 +01:00
Juan RP
6d2497d8d8
xbps-install/state_cb.c: do not print anything if XBPS_STATE_XBPS_UPDATE is recvd.
2013-03-06 09:21:09 +01:00
Juan RP
a81316a248
xbps-query: ownedby.c: ignore unexistent files in pkg metadata.
2013-03-05 08:52:40 +01:00
Juan RP
5cb74b7ec9
xbps-rindex: fixed -c --clean mode (missing args wtf).
2013-03-05 05:03:15 +01:00
Juan RP
0e50b09cbe
xbps-uhelper: fix 'version' target.
2013-03-05 04:45:32 +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
c50cbf03c7
xbps-query: added support to query virtual packages in repository mode.
2013-03-02 19:10:13 +01:00
Juan RP
7e171b67cf
xbps-query: in search mode also count blanks for the output string.
2013-02-28 16:07:11 +01:00
Juan RP
30d9f6ae4d
xbps-query: pretty print "source-revision" pkg metadata obj.
2013-02-20 16:59:28 +01:00
Juan RP
da11e55847
xbps-pkgdb.8: explain exactly what checks are executed currently.
2013-02-20 16:32:53 +01:00
Juan RP
1f324a76a2
xbps-{install,query,rindex}.8: document environment var: XBPS_TARGET_ARCH.
2013-02-20 11:42:06 +01:00
Juan RP
0c50c0bb2d
xbps-pkgdb: new option -m --mode <auto|manual> to change pkg install mode.
2013-02-20 10:35:55 +01:00
Juan RP
9ab97aa2cf
xbps-install: don't exec a transaction if only sync mode is requested.
2013-02-20 09:58:31 +01:00
Juan RP
3cc8f66f64
xbps-query: in -s do not print "[virtual]" on vpkg matches.
2013-02-18 14:25:15 +01:00
Juan RP
be1086f8fb
xbps-query: -s, --search is able to find pkgs by matching virtual pkgnames.
2013-02-15 08:30:11 +01:00
Juan RP
3bb41a2662
xbps-query: changed -M (--list-orphans) shortopt to -O.
2013-02-13 15:47:46 +01:00
Juan RP
da957433cb
xbps-query: align -s output based in collected results not globally.
2013-02-11 16:18:43 +01:00
Juan RP
9c3cb200d4
xbps-query: align correctly -l results (state wasn't taken into account).
2013-02-11 11:04:25 +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
dcff876533
xbps-query: explicitly use -R for repository mode; otherwise local.
...
This closes #3 by radare.
2013-02-02 12:02:10 +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
303df5fc46
xbps-install: new flag -S,--sync and remove -s,--skip-sync.
...
-S: to explicitly synchronize remote repository index files.
-s: removed because it is now redundant and useless.
2013-01-31 10:44:33 +01:00
Juan RP
cc068b2b39
xbps-query: do not sync repo index-files; use xbps-install -S instead.
2013-01-31 10:44:27 +01:00
Juan RP
a92d6e73e5
xbps-create.8: mention --shlib-{provides,requires}.
2013-01-31 09:49:11 +01:00
Juan RP
7360a6fca3
Fix previous; only use arg0 in client cb.
2013-01-31 09:41:43 +01:00
Juan RP
130649bad9
xbps-query/list.c: remove obsolete code.
2013-01-24 09:37:58 +01:00
Juan RP
82a8263f37
xbps-rindex(8): fix crash in -r when a pkg cannot be removed.
2013-01-16 16:25:29 +01:00
Juan RP
fa40928026
xbps-install: don't treat EEXIST as an error when installing pkgs.
...
Thanks to pancake for the bug hunting.
2013-01-16 11:47:52 +01:00
Juan RP
ea2f2c7297
Silence -Wformat-nonliteral warning with clang.
2013-01-04 10:35:00 +01:00
Juan RP
492bfeb560
xbps-create: ignore 'shlib-{provides,requires}' files generated by xbps-src.
2012-12-24 11:39:10 +01:00
Juan RP
1fa3601893
xbps-create: added support for --shlib-{provides,requires} options.
2012-12-24 10:55:17 +01:00
Juan RP
cf1c42a109
xbps-query.8: improve desc for -o and -s.
2012-12-20 07:17:16 +01:00
Juan RP
a12b1b671b
xbps-query.8: explain pkg states for the -l option.
2012-12-20 07:11:05 +01:00
Juan RP
b77a6df950
xbps-{install,query}.8: add PACKAGE EXPRESSION section.
2012-12-20 07:02:28 +01:00
Juan RP
faf0fd6a08
xbps-query: print pkg state in -l, --list-packages mode.
2012-12-20 06:15:56 +01:00
Juan RP
2a7700bc94
xbps-query: also print pkg state in local mode.
2012-12-20 06:15:18 +01:00
Juan RP
23e7f317f8
xbps-query: ownedby: simplify and avoid xbps_pkgpattern_match, fnmatch is enough.
2012-12-15 19:19:42 +01:00
Juan RP
bb877b0db7
xbps-rindex: -a does not remove outdated binpkgs anymore; use -r instead.
2012-12-15 11:13:32 +01:00
Juan RP
e2176ec4b6
bin: no point in cleaning up resources when it's exiting...
2012-12-14 11:58:30 +01:00
Juan RP
647aa0727f
xbps-pkgdb/Makefile: remove redundant assignment.
2012-12-14 09:56:12 +01:00
Juan RP
41f753248f
xbps-rindex(8): remove obsoletes mode (-r) is now multithreaded.
2012-12-14 09:47:47 +01:00
Juan RP
338c0d549f
xbps-pkgdb: fixed some memleaks.
2012-12-14 06:04:58 +01:00
Juan RP
a0443fc4ce
xbps-rindex(8): clean mode (-c) is now multithreaded.
2012-12-14 04:59:47 +01:00
Juan RP
33a8150a98
xbps-pkgdb: checking all pkgs with -a/--all is now multithreaded.
2012-12-14 03:31:24 +01:00
Juan RP
db5da575a4
xbps-create: added support to add hardlinks.
2012-12-12 03:48:27 +01:00
Juan RP
f2d2b2fde9
xbps-install: fetch_cb.c: if stdout is a tty use stderr.
2012-12-10 11:20:59 +01:00
Juan RP
ca5aeebdc9
xbps-install: fetch_cb.c: do not print ANSI escape codes if stdout isn't a tty.
2012-12-10 11:09:18 +01:00
Juan RP
849191a5de
xbps-rindex: [clean] if pkg cannot be read don't check for hash mismatch.
2012-12-07 09:57:41 +01:00
Juan RP
942db86eb5
xbps-query/search.c: add missing assert.h.
2012-12-06 10:58:11 +01:00
Juan RP
924ef35a07
xbps-query: fixed some issues found by pancake and valgrind.
2012-12-05 08:47:53 +01:00
Juan RP
298072ced3
xbps-rindex(8): in clean mode (-c) also remove entries with unmatched hash.
2012-12-03 11:05:37 +01:00
Juan RP
f45352dbf8
Added support for dynamic generation of revdeps for installed packages.
2012-11-30 17:40:52 +01:00
Juan RP
9ac3b60048
xbps-query: repo_revdeps_cb: simplify by using a dictionary iterator.
2012-11-30 10:45:26 +01:00
Juan RP
63c1883201
Major API/ABI cleanup bringing performance improvements and fixes.
...
These are the core interfaces in the new API:
rpool - Interface to interact with the repository pool.
rindex - Interface to interact with repository indexes.
pkgdb - Interface to interact with local packages.
transaction - Interface to interact with a transaction.
This also brings new repository index format, making the index file
per architecture and being incompatible with previous versions.
The transaction frequency flush option has been removed, and due to
the nature of package states it was causing more harm than good.
More changes coming soon, but the API shall remain stable from now on.
2012-11-30 07:11:51 +01:00
Juan RP
25612870f0
xbps-query: when checking revdeps from repos use the same pkgver from repo pkg.
...
This fixes showing revdeps for any pkg that uses dependencies like:
foo>2.0<3.0
blah<15
2012-11-26 10:22:09 +01:00
Juan RP
b7b6f7f1b4
xbps-create: use the right var in chdir(2) doh.
2012-11-25 11:03:03 +01:00
Juan RP
743eabb88e
xbps-rindex: dont panic if old binpkg doesn't exist.
2012-11-24 08:50:52 +01:00
Juan RP
9f7357ecf5
xbps-{install,remove}.8: remove unimplemented option.
2012-11-21 06:57:13 +01:00
Juan RP
0c79a016a4
xbps-rindex: typo fix to make -r work.
2012-11-21 06:03:41 +01:00
Juan RP
b39881e47a
xbps-remove: renamed -i, --ignore-revdeps to -F --force-revdeps.
2012-11-21 06:00:55 +01:00
Juan RP
7669fcf34d
xbps-install: remove -p --print-format arg for now (unimplemented).
2012-11-21 05:57:53 +01:00
Juan RP
27622cf3cb
xbps-{install,query}.8: update for 0.18 metadata changes.
2012-11-21 05:30:28 +01:00
Juan RP
79a31bb6bc
xbps-query: implemented -X, --revdeps in repository mode.
2012-11-21 02:52:36 +01:00
Juan RP
37e5d7ebe0
xbps-query: show_pkg_files: return error if files != dictionary.
2012-11-20 22:58:15 +01:00
Juan RP
d063e63bbb
xbps-create: new option -G, --source-revisions; mainly for xbps-src use.
2012-11-20 04:21:26 +01:00
Juan RP
78cd625c28
xbps-pkgdb: fixed symlinks check; this now detects modified symlinks correctly.
2012-11-19 21:12:04 +01:00
Juan RP
ca26c20dd5
xbps-query: show usage() when called with no args.
2012-11-19 21:06:37 +01:00
Juan RP
5de4fb1f0a
xbps-install: -f will also overwrite pkg files.
2012-11-19 20:50:58 +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
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
ace91b17e0
xbps-pkgdb: add changes in reqby back to our pkgdb pkg dictionary.
2012-11-18 12:04:57 +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
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
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
d6735d5685
xbps_xasprintf: do not return NULL anymore; remove checks for this.
2012-11-11 09:37:27 +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
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
Juan RP
5830f154d5
xbps-query.8: improve -R, --repository description.
2012-11-06 11:41:33 +01:00
Juan RP
e21cdc68df
Remove obsolete xbps-{bin,repo} utils.
2012-11-06 11:07:31 +01:00
Juan RP
e57e6669fb
xbps-query: added a manual page.
2012-11-06 11:05:27 +01:00
Juan RP
11149f058c
man: use the same width.
2012-11-06 10:33:29 +01:00
Juan RP
0c6a4f08ff
xbps-install: added a manual page.
2012-11-06 10:23:07 +01:00
Juan RP
a41f8f2d92
man: s/Void GNU\/Linux/Void Linux/g
2012-11-06 09:55:56 +01:00
Juan RP
737727999b
xbps-pkgdb: added a manual page.
2012-11-06 09:54:43 +01:00
Juan RP
310e619ea3
Remove unnecessary variable assignments reported by cppcheck.
2012-11-06 09:28:34 +01:00
Juan RP
c7402a9176
xbps-query/search.c: fix a memleak found by cppcheck.
2012-11-06 09:13:05 +01:00
Juan RP
ef6ed7d8c7
xbps-query: fallback to repos on ENOENT for show modes.
2012-11-05 13:17:15 +01:00
Juan RP
2e649f9315
xbps-query: show usage if no args are set for search or ownedby modes.
2012-11-05 12:12:34 +01:00
Juan RP
1948978dec
xbps-create.8: add Xrefs.
2012-11-05 09:57:52 +01:00
Juan RP
f6a4ab353a
xbps-install/transaction: remove extra \n in a printf.
2012-11-05 09:53:35 +01:00
Juan RP
caaf885229
xbps-remove: constify longopts; exec trans correctly.
2012-11-05 09:51:34 +01:00
Juan RP
0a7e917d49
manpages: tweaks.
2012-11-05 09:39:10 +01:00
Juan RP
603b0249f1
xbps-remove.8: minor fix.
2012-11-03 11:37:12 +01:00
Juan RP
306273ce7b
xbps-remove.8: minor tweaks.
2012-11-03 11:33:55 +01:00
Juan RP
2734ad6d5e
xbps-remove.8: extend DESCRIPTION.
2012-11-03 11:29:45 +01:00
Juan RP
b35ae55028
xbps-reconfigure.8: Xr xbps-rindex(8).
2012-11-03 11:21:39 +01:00