Juan RP
d55391e2e9
Cleaned up the Makefiles, improve README about what's required.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091228151958-ehx17nupq3uckhhg
2009-12-28 16:19:58 +01:00
Juan RP
4be79d4535
xbps_register_pkg: if automatic-install obj is there, don't overwrite its value.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091224003242-9twye4isotebbips
2009-12-24 01:32:42 +01:00
Juan RP
53adf2779b
Bump XBPS_RELVER to 20091222 for last set of changes.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091222140309-2it3myqqwknfjcil
2009-12-22 15:03:09 +01:00
Juan RP
343600261c
xbps-bin(8):
...
- Add -y flag to assume "yes" for all questions.
- Print a proper error string when the transaction dictionary is empty.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091222134338-u9h0iybexedunm0h
2009-12-22 14:43:38 +01:00
Juan RP
7eea0f8e8e
xbps-bin(8): implemented Launchpad blueprint "arbitrary-pkgname-args".
...
See https://blueprints.launchpad.net/xbps/+spec/arbitrary-pkgname-args .
The install, update and remove targets now accept a list of package
names that will be processed.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091222113736-0dawl4whvtdi5dj3
2009-12-22 12:37:36 +01:00
Juan RP
009c2131fc
xbps_yesno/noyes: change the funcs to only accept "yes" or "no"
...
(case insensitive) answers rather than the short ones.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091222112759-0mnzjt3qcwp45ugn
2009-12-22 12:27:59 +01:00
Juan RP
6b83ad4c7e
vars.mk: remove dup -lcrypto.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091220223349-h8rhb7liy6aboz1c
2009-12-20 23:33:49 +01:00
Juan RP
6e863cbf45
lib/fetch/Makefile: ignore fstack-protector warnings.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091218122139-g4ljwb50cvnr8alj
2009-12-18 13:21:39 +01:00
Juan RP
eb0cd7ac5c
.bzrignore: add .xml files.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091218122119-umc9mvpcglwxvoey
2009-12-18 13:21:19 +01:00
Juan RP
f89e128a81
repository_sync_index.c: add missing sys/stat.h.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091218122054-bm5uchhrmubnfb0m
2009-12-18 13:20:54 +01:00
Juan RP
02c0c569a3
xbps-{bin,repo}.8.txt: s/SYNOPSYS/SYNOPSIS/
...
--HG--
extra : convert_revision : juan%40juan-desktop-20091218121933-hgss4vyhyaoj3pbn
2009-12-18 13:19:33 +01:00
Juan RP
bb5859fa35
README: asciidoc is also required to build the manpages.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091212102227-mhfzly4xywrf0zc0
2009-12-12 11:22:27 +01:00
Juan RP
a666573d29
Added a minimal README file.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091212102023-nnz7173tylcpnfd6
2009-12-12 11:20:23 +01:00
Juan RP
279219a348
xbps_unpack_binary_pkg: set INSTALL/REMOVE perms to 0750.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091211095846-kwszryu1wlho39eq
2009-12-11 10:58:46 +01:00
Juan RP
6c2a648510
repository_plist.c: fix lp bug #494905 "xbps build failure on x86_64".
...
fetchIO_read returns ssize_t not int, applied patch from submitter.
Thanks.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091210081328-cxkzuxjapaven6a3
2009-12-10 09:13:28 +01:00
Juan RP
eb885bbcc2
When executing the INSTALL/REMOVE scripts, always pass the UPDATE
...
value to them.
Bump XBPS_RELVER to 20091209.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091209151435-1yy9f7k2880tswz7
2009-12-09 16:14:35 +01:00
Juan RP
026dc6dbd9
xbps_unpack_binary_pkg: bail out if required metadata plist files aren't
...
found after processing 6 entries from the archive.
This to detect non-valid XBPS binary packages.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091207062422-fnwx9n0miq1nwadt
2009-12-07 07:24:22 +01:00
Juan RP
2d68cec780
xbps-bin: make the 'autoremove' target respect -f flag to bypass question.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091207055227-8kiks1f3k2tuoe2z
2009-12-07 06:52:27 +01:00
Juan RP
972af411d1
libxbps: share code for removing pkg files in remove.c and purge.c.
...
A new function has been created, xbps_remove_pkg_files() that accepts
a dictionary internalized from files.plist and a key to remove
links, dirs, files and conf_files.
As result of this, now when purging a package those directories that
were used in configuration files will also be removed if they are empty.
Bump XBPS_RELVER to 20091207.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091207053006-egw65u6y1jcuraje
2009-12-07 06:30:06 +01:00
Juan RP
f5744b0d3d
xbps_remove_pkg: when removing dirs there is no need to look for
...
the "keep" obj anymore.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091207042711-g3raluagagj9b4au
2009-12-07 05:27:11 +01:00
Juan RP
b0b00cf1ff
xbps-repo: when adding local repos always create XBPS_META_PATH.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091206082938-4adrlgkbsz6lsz5y
2009-12-06 09:29:38 +01:00
Juan RP
2faef604bd
xbps-bin.8.txt: fix typo.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091205000558-cktvvd1ka6445g62
2009-12-05 01:05:58 +01:00
Juan RP
20ec9c3b6d
Fixed typos in xbps-{bin,repo} manpages.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091202061945-kpgqqrc9pgriosb3
2009-12-02 07:19:45 +01:00
Juan RP
b03a18ff84
xbps_unpack_binary_pkg: removed 2nd bool argument, look for a preserve object
...
to not remove files in removal or upgrades.
Bump XBPS_RELVER to 20091202.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091202053103-uby6hwu313pieafa
2009-12-02 06:31:03 +01:00
Juan RP
94bb169c88
Rename lib/repository_plist.c exported functions.
...
xbps_get_path_from_pkg_dict_repo -> xbps_repository_get_path_from_pkg_dict
xbps_get_pkg_plist_dict_from_repo -> xbps_repository_get_pkg_plist_dict
xbps_get_pkg_plist_dict_from_url -> xbps_repository_get_pkg_plist_dict_from_url
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091130113538-bji65cydf3bkwxkw
2009-11-30 12:35:38 +01:00
Juan RP
d90a248244
Rename struct repository_data to repository_pool.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091130112404-mlrt6x08thdvmrsn
2009-11-30 12:24:04 +01:00
Juan RP
91aeac4dad
Rename some function from lib/repository* with more meaningful names.
...
xbps_unregister_repository() -> xbps_repository_register()
xbps_register_repository() -> xbps_repository_unregister()
xbps_find_deps_in_pkg() -> xbps_repository_find_pkg_deps()
xbps_prepare_pkg() -> xbps_repository_install_pkg()
xbps_find_new_pkg() -> xbps_repository_update_pkg()
xbps_find_new_packages() -> xbps_repository_update_allpkgs()
xbps_get_pkg_props() -> xbps_repository_get_transaction_dict()
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091130110846-5uaqxdhfo0kl0cqd
2009-11-30 12:08:46 +01:00
Juan RP
e4cda0e9cc
Rename lib/sync_remote_pkgidx.c to repository_sync_index.c.
...
xbps_sync_repository_pkg_index() renamed to xbps_repository_sync_pkg_index().
--HG--
rename : lib/sync_remote_pkgidx.c => lib/repository_sync_index.c
extra : convert_revision : xtraeme%40gmail.com-20091130105325-75rr2xm1zpi8bjwh
2009-11-30 11:53:25 +01:00
Juan RP
a3db88bd07
xbps_api.h: update comments, sort.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091130104825-s5rc7h69l1avxjk9
2009-11-30 11:48:25 +01:00
Juan RP
7996aeba3f
Rename lib/depends.c to repository_finddeps.c and lib/findpkg.c to
...
repository_findpkg.c.
--HG--
rename : lib/depends.c => lib/repository_finddeps.c
rename : lib/findpkg.c => lib/repository_findpkg.c
extra : convert_revision : xtraeme%40gmail.com-20091130103814-25tr08vkc73cqutu
2009-11-30 11:38:14 +01:00
Juan RP
bfa9858277
xbps-bin, xbps-repo: show the "essential" and "replaces" objs values
...
in the 'show' target.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091130102023-3ureuzorr96fj7by
2009-11-30 11:20:23 +01:00
Juan RP
45f1d7b70a
xbps_sort_pkg_deps: add debugging, use xbps_pkgdep_match().
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091129045327-x2y95weqecbon4l4
2009-11-29 05:53:27 +01:00
Juan RP
bd9b545fc9
xbps_find_pkg_repo_deps: check if current pkg version in repo is
...
enough to satisfy the required rundep for a pkg!
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091129045232-ext4zxqrtsmbbqku
2009-11-29 05:52:32 +01:00
Juan RP
4e38be11f4
xbps-bin: fix assertion with pkgs containing the "replaces" obj.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091129045149-l8zvcbo1w1jzglai
2009-11-29 05:51:49 +01:00
Juan RP
1a5d19dca2
Fix and improve how missing pkg dependencies are handled from repos.
...
- Use an array of strings to store the pkgdeps.
- While adding a missing pkgdep, check if it's already in the queue and
new required version is greater, in that case replace with new one.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091129021735-5dqfucofny8slks2
2009-11-29 03:17:35 +01:00
Juan RP
eb0567bfab
xbps-bin(8): mention /var/db/xbps/metadata/pkgname/*.plist.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091128081809-2wk7hvlwtr6m9y8b
2009-11-28 09:18:09 +01:00
Juan RP
5c1d4034ee
xbps_api.h: indent.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091128081422-xoh55vire5079fjz
2009-11-28 09:14:22 +01:00
Juan RP
a85073f6e8
xbps-repo: also print binpkg compression type in the show target.
...
Now it looks like:
$ xbps-repo show xbps-devel
Fetching info from: /storage/xbps/packages
Filename: xbps-devel-20091128.i686.xbps (size: 69K)
SHA256: 2c54a61fbd128097692edc19a7c17bfb10d93b3f055b04171cd1e4d97cde79df
Compression type: xz
Package: xbps-devel
Installed size: 216K
Maintainer: Juan RP [xtraeme@gmail.com ]
Architecture: i686
Version: 20091128
Description: The XBPS package system (development branch)
The XBPS package system. A new, fast, from scratch and simple
binary package manager. This packages includes code from a development
branch available from https://launchpad.net/xbps
$
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091128051134-qzqqnwd76tcxgxb0
2009-11-28 06:11:34 +01:00
Juan RP
8b3b5c9d1a
xbps-bin, xbps-repo: use xbps_pkgdep_match() for the search target.
...
This provides csh style shell pattern.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091128045200-4rymuqm90rzmgiaw
2009-11-28 05:52:00 +01:00
Juan RP
88ba635780
Split unpack.c config files and remove obsoletes code into its own files.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091128044321-6kmhrrxggv2h681w
2009-11-28 05:43:21 +01:00
Juan RP
6208cc8e30
xbps-bin: update manpage.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091128025636-xb1xywk7cv43ozng
2009-11-28 03:56:36 +01:00
Juan RP
3855ee582a
xbps-repo: add -c flag to set cachedir, update manpage.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091128025616-fe43609n1rosmt6u
2009-11-28 03:56:16 +01:00
Juan RP
f3d2481c31
xbps-repo: if fetching info from remote repo for the 'show' and 'show-files'
...
targets and the binary package exists in cachedir, use it.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091128022129-y6y2tr0vtvy2w745
2009-11-28 03:21:29 +01:00
Juan RP
21bea723f4
xbps_sync_repository_pkg_index: update comments.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091128015352-2rdqhdod9r5fe1t1
2009-11-28 02:53:52 +01:00
Juan RP
e652de8d5a
libxbps: remove unused xbps_check_pkg_file_hash().
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091128015121-wxiy8y0ift5ykrdm
2009-11-28 02:51:21 +01:00
Juan RP
bf7ca100f6
xbps_unpack_binary_pkg: cosmetic changes.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091128014936-0k9pmxox7igtlfmn
2009-11-28 02:49:36 +01:00
Juan RP
494504dbec
Added support for a cachedir to store downloaded binpkgs.
...
libxbps:
* Added xbps_set_cachedir() and xbps_get_cachedir(). By default it's
set to /var/cache/xbps if not specified and it's always relative
to the root directory.
* Move mkpath() code from sync_remote_pkgidc.c into its own file mkpath.c
to use it in another parts of the code.
* Added xbps_get_binpkg_local_path(), that returns the local path to
a binary package file, stored in cachedir or local repo.
* Remote pkg index files are now stored directly in metadir/repodir,
skipping the arch directory because binpkgs are now in cachedir.
xbps-bin:
* Added -c flag to set the cachedir.
* Check sha256 hashes in the download stage so that it can check
a downloaded binpkg immediately once is stored.
* If a binpkg doesn't match the hash it will be refetched.
Bump XBPS_RELVER to 20091128.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091128013841-kkcvk07lsqdr26w8
2009-11-28 02:38:41 +01:00
Juan RP
0d0e6d06b1
xbps_repository_pool_init: if unexistent repos are registered,
...
ignore them but do not report any error.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091127005130-ut5dslafwnrg2pye
2009-11-27 01:51:30 +01:00
Juan RP
0173a28aa2
xbps_repository_pool_init: ignore invalid repositories if always there
...
is one that is working, otherwise report an error.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091126204146-ikfwi8zvag1s3446
2009-11-26 21:41:46 +01:00
Juan RP
30fc7b050a
xbps_find_pkg_installed_from_plist: if pkg is in 'config-files'
...
state, treat this as not installed and set errno to ENOENT.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091126040107-zj0stff23hlta1d2
2009-11-26 05:01:07 +01:00