1 |
I remember that a while back I asked about user created package lists to |
2 |
supplement system & world. If I remember correctly, I believe you |
3 |
(portage devs) were open to the idea. |
4 |
|
5 |
I have been working on re-coding the upgrades view in porthole partially |
6 |
to get around a gtk treeview bug causing segfaults (reportedly fixed in |
7 |
>=gtk+-2.8.14). The other reason is to add a feature I have thought |
8 |
about for some time (the reason I asked this last time). Anyway I have |
9 |
the basic re-coding done. It is now possible to break down the |
10 |
upgradeable packages into as many lists as desired. |
11 |
|
12 |
Currently lists are hard coded but will be configurable. (Easier to get |
13 |
one thing working at a time) "System" list is generated at run time |
14 |
(using the self.system_cmd, then using portage.catsplit to trim the |
15 |
version info): |
16 |
|
17 |
self.cat_order = ["System", "User list1", "World", "Dependencies"] |
18 |
self.categories = {"System":None, "World":"World", "User list1":None, "Dependencies":"Dependencies"} |
19 |
self.upgradables = {} |
20 |
self.pkg_count = {} |
21 |
for key in self.categories: |
22 |
self.upgradables[key] = {} |
23 |
self.pkg_count[key] = 0 |
24 |
self.count = 0 |
25 |
# command lifted fom emwrap and emwrap.sh |
26 |
self.system_cmd = "emerge -ep --nocolor --nospinner system | cut -s -f2 -d ']'| cut -f1 -d '[' | sed 's/^[ ]\+//' | sed 's/[ ].*$//'" |
27 |
|
28 |
[snip] |
29 |
|
30 |
upgradable = package.is_upgradable() |
31 |
if upgradable: # is_upgradable() = 1 for upgrade, -1 for downgrade |
32 |
if upgradable == 1 or not self.upgrade_only: |
33 |
for key in self.cat_order: |
34 |
if package.in_list(self.categories[key]): |
35 |
self.upgradables[key][package.full_name] = package |
36 |
self.pkg_count[key] += 1 |
37 |
break |
38 |
|
39 |
|
40 |
Is there any plans for officially supported user lists? eg: |
41 |
|
42 |
# emerge -up --list mylist |
43 |
|
44 |
where mylist is in /etc/portage/lists/ (for example) |
45 |
|
46 |
Should I set it up to use them from /etc/portage/lists/. Or just from a |
47 |
users .porthole directory? I may have missed it if it has already been |
48 |
done :) |
49 |
|
50 |
|
51 |
-- |
52 |
Brian <dol-sen@×××××.net> |
53 |
|
54 |
-- |
55 |
gentoo-portage-dev@g.o mailing list |