I remember that a while back I asked about user created package lists to
supplement system & world. If I remember correctly, I believe you
(portage devs) were open to the idea.
I have been working on re-coding the upgrades view in porthole partially
to get around a gtk treeview bug causing segfaults (reportedly fixed in
>=gtk+-2.8.14). The other reason is to add a feature I have thought
about for some time (the reason I asked this last time). Anyway I have
the basic re-coding done. It is now possible to break down the
upgradeable packages into as many lists as desired.
Currently lists are hard coded but will be configurable. (Easier to get
one thing working at a time) "System" list is generated at run time
(using the self.system_cmd, then using portage.catsplit to trim the
version info):
self.cat_order = ["System", "User list1", "World", "Dependencies"]
self.categories = {"System":None, "World":"World", "User list1":None,
"Dependencies":"Dependencies"}
self.upgradables = {}
self.pkg_count = {}
for key in self.categories:
self.upgradables[key] = {}
self.pkg_count[key] = 0
self.count = 0
# command lifted fom emwrap and emwrap.sh
self.system_cmd = "emerge -ep --nocolor --nospinner system | cut -s -f2
-d ']'| cut -f1 -d '[' | sed 's/^[ ]\+//' | sed 's/[ ].*$//'"
[snip]
upgradable = package.is_upgradable()
if upgradable: # is_upgradable() = 1 for upgrade, -1 for
downgrade
if upgradable == 1 or not self.upgrade_only:
for key in self.cat_order:
if package.in_list(self.categories[key]):
self.upgradables[key][package.full_name] =
package
self.pkg_count[key] += 1
break
Is there any plans for officially supported user lists? eg:
# emerge -up --list mylist
where mylist is in /etc/portage/lists/ (for example)
Should I set it up to use them from /etc/portage/lists/. Or just from a
users .porthole directory? I may have missed it if it has already been
done :)
--
Brian <[EMAIL PROTECTED]>
--
[email protected] mailing list