1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
René 'Necoro' Neumann schrieb: |
5 |
> Ciaran McCreesh schrieb: |
6 |
>> Sounds like you need a layered architecture. A low level catapult to |
7 |
>> package manager layer, and a high level package manager independent |
8 |
>> extras layer. |
9 |
> |
10 |
> |
11 |
> Currently working on transforming it ... Will post the results later on :) |
12 |
> |
13 |
|
14 |
Ok - I got some stuff done today: |
15 |
|
16 |
- - find_packages now only supports package specs. It throws an |
17 |
AmbiguousPackage error if there is something ambiguous. |
18 |
Note: if "" is passed as the spec, _everything_ is returned |
19 |
|
20 |
- - list_categories always returns all categories |
21 |
|
22 |
- - filter_list has been implemented as part of libcatapult which takes a |
23 |
globbing string (allowing "*" and "?") and a list - and filters. (Note: |
24 |
This is currently not implemented in a nice way. The python wrappers are |
25 |
longer than the function itself ;)) |
26 |
|
27 |
- - removed get_environment and get_world_file_path from the API |
28 |
|
29 |
- - added the "name()" method to the admin interface |
30 |
|
31 |
- - added first exception/error support. For a detailed listing of |
32 |
currently known errors: http://catapult.origo.ethz.ch/wiki/api_exceptions |
33 |
|
34 |
And I had an idea about getting rid of dbus (at least in some way): |
35 |
Instead of forcing dbus, we first implement catapult as a library. The |
36 |
dbus support is additional and would be a small wrapper on top of this |
37 |
library. So we had both worlds combined. |
38 |
|
39 |
To get the portage code ported, I'm going to have a look into |
40 |
Cython/Pyrex. This is probably not the most performant way - but who |
41 |
cares ;) |
42 |
|
43 |
Only one thing has to be solved: How is it possible to load additional |
44 |
"catapult providers" on the fly? - So similar to the dbus way: You |
45 |
install catapult and additional providers (e.g. catapult-portage) and |
46 |
then load the correct libs at runtime. |
47 |
I guess this can be answered by someone who has a deeper knowledge of C |
48 |
than me ;) |
49 |
|
50 |
For reference - the latest revisions having this changes implemented: |
51 |
catapult rev: 25 |
52 |
catapult-portage rev: 41 |
53 |
-----BEGIN PGP SIGNATURE----- |
54 |
Version: GnuPG v2.0.7 (GNU/Linux) |
55 |
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org |
56 |
|
57 |
iD8DBQFH8rBM4UOg/zhYFuARAiykAJ9U/ZZhYz0hBbe0mnVrZj+Yva7NIgCfXyMX |
58 |
vGSyAUL8lFjWsNJLQHaCdY0= |
59 |
=OqIs |
60 |
-----END PGP SIGNATURE----- |
61 |
-- |
62 |
gentoo-guis@l.g.o mailing list |