2011/2/14 Tomáš Chvátal <scarab...@gentoo.org>:
> Dne 14.2.2011 14:49, Gilles Dartiguelongue napsal(a):
> Same does x11 team...
> Example:
> http://bugs.gentoo.org/show_bug.cgi?id=354237
>
> I think this does not need any policy, most teams can use brains and
> fill the bugs quite conveniently :)
>

In related news, there's a nice script to generate such a list:

http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=blob;f=scripts/gen_archlist.py

It will assign a stable keyword for an arch if and only if an earlier
version was stable for that package.

Usage: ./gen_archlist.py <file_with_all_atoms>

to check the dependencies recursively and generate a list:

CHECK_DEPS=1 ./gen_archlist.py <file_with_atoms>

Examples of files with atoms:

http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=tree;f=scripts/test-data

Bugs:

* Only works for generating STABLEREQ lists. KEYWORDREQ is broken (and
I'm too lazy to fix it)

CHECK_DEPS bugs:

* If there's an || dep, selects both for stabilization
* Does not handle the case where use-flags are package.use.masked on
some arch other than the one you're running the script on
  - Script logic is fundamentally broken for this
* Can duplicate atoms sometimes (happens when more than one version
gets pulled in by a dependency)

Patches for fixing these bugs are welcome :p

PS: yes, I know the script's logic is extremely spaghetti. It works
for most cases, so I never rewrote it.

-- 
~Nirbheek Chauhan

Gentoo GNOME+Mozilla Team

Reply via email to