Juan RP
880b11b3fd
Added tag 0.8.0 for changeset edce524aeca6
2011-05-24 09:47:51 +02:00
Juan RP
c7a7300078
Update Changelog for 0.8.0.
2011-05-24 09:47:36 +02:00
Juan RP
61440fd8b0
NEWS: 0.8.0 will be released today.
2011-05-24 09:45:44 +02:00
Juan RP
5813d48071
Removed tag 0.8.0
2011-05-24 09:44:58 +02:00
Juan RP
c1d87b7984
Added tag 0.8.0 for changeset 587da31caa33
2011-05-24 09:44:32 +02:00
Juan RP
1f998e246f
Bump XBPS_RELVER for previous change.
2011-04-11 15:18:44 +02:00
Juan RP
ef28101203
xbps_register_pkg: remove 'automatic' boolean argument.
...
It should be provided in the proplib dictionary with key 'automatic-install'.
This fixes a regression not respecting the 'automatic-install' value stored
in regpkgdb.
2011-04-11 14:42:06 +02:00
Juan RP
ad66fa2e3d
xbps-bin::install.c: remove unused var to make this build with gcc-4.6.
...
Reported and patch provided by ojab in issue 4.
2011-04-08 19:25:41 +02:00
Juan RP
d9eb0341cd
Some dead stores and build fixes reported by LLVM 2.9.
2011-04-07 12:24:20 +02:00
Juan RP
6a91c2894e
xbps_unpack_binary_pkg: fix wrong path to metadata files!
2011-03-04 10:48:39 +01:00
Juan RP
0452c7c9dd
Fix a dup'ed word.
2011-03-03 17:56:18 +01:00
Juan RP
35dc0aa5ad
configure: build with -pthread unconditionally, don't test for -pipe or -D_FORTIFY_SOURCE.
2011-02-27 15:44:44 +01:00
Juan RP
007d6b4bd5
xbps-bin.8: bump date.
2011-02-26 11:17:02 +01:00
Juan RP
dd72cb295d
xbps-uhelper: added two new targets 'setsource' and 'fromsource'.
...
Both targets will be used by some upcoming changes in xbps-src, therefore
they shouldn't be used manually by the user.
2011-02-26 11:15:17 +01:00
Juan RP
221291929e
xbps-bin: added -A and -M options for explicitly setting install reason to auto or manual.
2011-02-26 11:14:05 +01:00
Juan RP
8191a1511c
Make it possible to overwrite the "automatic-install" pkg object via xbps_init().
...
Two new booleans were added to struct xbps_handle: install_reason_{auto,manual}.
The backend is able to force auto or manual installation for a package (and
dependencies that were installed/updated) by setting to true any of those
booleans. Bump XBPS_RELVER.
2011-02-26 11:11:45 +01:00
Juan RP
2c644c6587
Treat pkgs with NULL or empty requiredby arrays as orphans.
2011-02-26 11:08:58 +01:00
Juan RP
f2ef0c0050
xbps-bin: return rval if 'install' target cannot find a pkg.
2011-02-25 13:41:57 +01:00
Juan RP
2eb7331907
xbps-bin: return 1 if there are missing deps, return errno in other errors.
2011-02-25 12:27:42 +01:00
Juan RP
0435772097
Fix chdir(2) path in previous.
2011-02-25 11:21:12 +01:00
Juan RP
ce24ff488c
xbps_file_exec: if chroot(2) returns EPERM, don't error out and try chdir(2).
...
This makes possible to install a base system with fakeroot (of course
some things won't probably work fully).
2011-02-25 11:17:13 +01:00
Juan RP
9759a62e3f
Do not printf a warning if remove(3) returns EEXIST/ENOTEMPTY/EBUSY.
2011-02-25 10:51:43 +01:00
Juan RP
777a91f62a
configure: test correctly PIE and PIC flags, remove -O2 which errors out on pcc.
2011-02-24 16:22:09 +01:00
Juan RP
0a6299318e
Revert revision 581: "Inline some very common functions in the API."
...
Some compilers yet don't support fully the inline C99 keyword and
there's little benefit anyway.
2011-02-24 15:48:50 +01:00
Juan RP
17be7bab81
configure: misc compiler flags fixes.
...
- Don't use -Wp, some compilers don't understand it. Simply use -D__BLAH___.
- Check for -Wl,--export-dynamic and if that fails try -rdynamic.
2011-02-24 15:33:53 +01:00
Juan RP
a252df4a8b
xbps_humanize_number: increase by one the output digits.
2011-02-24 10:46:10 +01:00
Juan RP
0a84799ac7
xbps-bin: add a simple unpack cb that mimics the 'check' target.
2011-02-24 10:18:24 +01:00
Juan RP
e4c24e5fea
xbps_read_dict_from_archive_entry: handle all erros returned by zlib's inflate().
2011-02-24 10:00:21 +01:00
Juan RP
7c6119427c
While installing a pkg, remove files with wrong hash before unpacking.
2011-02-24 00:24:11 +01:00
Juan RP
7e4118a6e2
Added xbps_get_file_hash_from_dict(), returns the sha256 string obj in a dictionary.
2011-02-24 00:21:40 +01:00
Juan RP
5f2ae48b71
xbps-bin: skip some unneeded stuff in the download and configure phases.
2011-02-23 23:43:45 +01:00
Juan RP
d357dfed90
Inline some very common functions in the API.
2011-02-23 17:27:51 +01:00
Juan RP
8baad7b5da
Simplify setting pkg state in transaction's dictionary.
2011-02-23 17:14:33 +01:00
Juan RP
12cdc7c242
xbps-bin: remove the unpack callback with a percentage.
...
It messes up some xbps_*printf()s, and removing it makes it look like
previous versions (<=0.7.3).
2011-02-22 16:33:54 +01:00
Juan RP
a306cebc96
xbps_set_pkg_state_installed: added two new optional arguments: version and pkgver.
...
This can be used to avoid some rare cases where the pkg dictionary is regpkgdb
is in a state where code can be faulty if those objects are not found.
2011-02-22 11:09:39 +01:00
Juan RP
9abcb92e39
xbps-bin::instal.c: some bugfixes for pkg state and the transaction steps.
...
- While installing a package, always check its state and don't ignore it
if it was already unpacked, we have to configure it.
- Before unpacking packages, configure packages that were unpacked previously.
2011-02-22 11:07:34 +01:00
Juan RP
15d164c70a
xbps_repository_{install,update}_pkg: respect pkg state in regpkgdb.
2011-02-22 10:31:16 +01:00
Juan RP
9e22df0725
xbps-bin: skip packages to be configured in the install/update stage, fix configured pkg count.
2011-02-21 23:28:39 +01:00
Juan RP
511dbffa9e
Simplify find_pkg_in_array().
2011-02-21 23:21:53 +01:00
Juan RP
c4db906a1f
xbps_api.h: fix some comments.
2011-02-21 18:00:44 +01:00
Juan RP
bdfa81c29d
package_unpack.c: fix a comment.
2011-02-21 17:57:46 +01:00
Juan RP
950853c72f
NEWS: tyopfix.
2011-02-21 17:47:01 +01:00
Juan RP
870ad18d58
xbps_init() now sets rootdir, cachedir and flags.
...
That means that the following functions were removed:
- xbps_set_{cachedir,flags,rootdir}.
- xbps_get_{cachedir,flags,rootdir}.
With this change fixed an obvious typo that made -c argument to not work,
and now the cache directory is an absolute path not relative to rootdir.
2011-02-21 17:42:47 +01:00
Juan RP
8d5a1ad0a3
xbps_api_impl.h: remove function name arguments in prototypes.
2011-02-21 14:04:57 +01:00
Juan RP
afe0f3e2f0
Make the xbps_handle struct const internally.
2011-02-21 14:03:08 +01:00
Juan RP
3acf91bb15
xbps-bin: unpack_progress_cb_verbose printf to stdout for consistency.
2011-02-21 13:53:08 +01:00
Juan RP
7ddd409b90
xbps_api.h: fix a comment.
2011-02-21 13:42:36 +01:00
Juan RP
22ae7aa2e8
Introduce struct xbps_handle and use it for xbps_init().
...
This structure sets up function callbacks for fetching files and
unpacking binary packages, as well as setting the debug boolean.
This way the affected functions (xbps_fetch_file() and
xbps_unpack_binary_pkg()) do not need to accept the fn cb pointers
and data as arguments.
Bump XBPS_RELVER.
2011-02-21 13:38:44 +01:00
Juan RP
0bd533f8a9
TODO: another item for xbps-bin(8).
2011-02-19 19:23:13 +01:00
Juan RP
078f9f1cda
Fixed finally another real case when updating and replacing pkgs.
2011-02-18 16:39:42 +01:00