Juan RP
20fcf3ad0a
xbps-install: sync usage() with reality.
2014-04-17 11:39:47 +02:00
Juan RP
8244f57320
bin/*: update manpages with Xref xbps-checkvers(8).
2014-04-07 12:22:55 +02:00
Juan RP
f74bf1c1c8
New custom configuration file format that does not need confuse.
2014-02-25 16:42:52 +01:00
Juan RP
4d1cdcac0c
Fix concurrency issues in pkgdb: only allow 1 write transaction at the same time.
...
This implementation relies on a POSIX named semaphore, which is also
required by xbps-rindex(8).
2014-02-23 08:23:14 +01:00
Juan RP
5eea259c13
Remove the config.h kludge and override vasprintf detection via HAVE_VASPRINTF.
2014-01-20 18:50:33 +01:00
Juan RP
804a39c63b
Added XBPS_ARCH environment var to override uname(2) machine result.
2014-01-09 11:41:25 +01:00
Juan RP
3730f9f5a4
bin/xbps-install/state_cb.c: use pkgver obj from pkgdb.
2013-12-25 11:12:03 +01:00
Juan RP
ec0d38c469
Implement per pkg RSA signatures and on-demand repository access.
2013-12-24 10:43:55 +01:00
Juan RP
0744b76946
xbps-xxx.8: update issues url.
2013-12-17 15:38:56 +01:00
Juan RP
2a21354a1c
Make some reorganization in struct xbps_handle.
...
The variables to set cachedir, rootdir and metadir have been
changed to "array of chars", this way there are no extra allocations.
Update clients accordingly and bump API version.
2013-12-16 11:46:39 +01:00
Juan RP
cc19818680
Improve stats in the transaction dictionary.
2013-12-16 07:24:17 +01:00
Juan RP
4403caa434
Add repos set in xbps_handle::repositories to the top of the list.
...
That means that now xbps-install(8) and xbps-query(8) --repository
option does not override the repository list of a configuration file.
2013-12-04 16:59:15 +01:00
Juan RP
8882b0215f
Redo how the repository keys are stored.
...
- Repository keys are now stored in a new directory on metadir (/var/db/xbps):
<metadir>/key>
- Repository keys are stored with the hex fingerprint of its RSA
public key in a plist dictionary:
<metadir>/keys/xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx.plist
- Drop xbps-rkeys(8) and merge its functionality into xbps-install(8) and
xbps-query(8).
- xbps-query(8) -vL now shows some more details of remote repositories:
3134 http://localhost:8000 (RSA signed, verified)
Signed-by: Void Linux
4096 60:ae:0c:d6:f0:95:17:80:bc:93:46:7a:89:af:a3:2d
16 http://localhost:8000/nonfree (RSA signed, verified)
Signed-by: Void Linux
4096 60:ae:0c:d6:f0:95:17:80:bc:93:46:7a:89:af:a3:2d
Bump XBPS_API_VERSION.
2013-11-18 16:05:46 +01:00
Juan RP
e03d49f6bf
xbps-install: size required on disk == dlsize+instsize.
2013-11-15 10:29:07 +01:00
Juan RP
70047586ee
Xref xbps-rkeys(8)
2013-10-12 10:13:32 +02:00
Juan RP
a5ecaa493f
New utility: xbps-rkeys(8) to manage RSA public keys.
2013-10-09 10:13:07 +02:00
Juan RP
8d5c48b861
Added support for the long awaited feature: RSA signed repositories.
2013-10-05 11:38:04 +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
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
c5acbc7953
mk/prog.mk: set MAN to $(BIN).8 by default.
2013-09-16 08:57:24 +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
a039330f3c
Misc cleanups: use __attribute__((__unused__)); remove dead code.
2013-08-29 10:45:30 +02:00
Juan RP
22ae6295f5
manpages: use github url for bugreports.
2013-08-18 10:17:45 +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
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
09e116b7f0
xbps_api.h -> xbps.h
2013-06-20 12:31:02 +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
db1efb3aa6
Relax memory requirements on 64bit platforms; fix two memleaks.
2013-06-12 10:04:10 +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
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
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
ab8cb56c24
fetch_cb.c: fixed casts when computing ETA.
2013-03-27 16:14:23 +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
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
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
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
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
1f324a76a2
xbps-{install,query,rindex}.8: document environment var: XBPS_TARGET_ARCH.
2013-02-20 11:42:06 +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
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
7360a6fca3
Fix previous; only use arg0 in client cb.
2013-01-31 09:41:43 +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
b77a6df950
xbps-{install,query}.8: add PACKAGE EXPRESSION section.
2012-12-20 07:02:28 +01:00
Juan RP
e2176ec4b6
bin: no point in cleaning up resources when it's exiting...
2012-12-14 11:58:30 +01:00