[MPlayer-dev-eng] Project Leader? (was: Re: Commit rules and coexistence rules)

Michael Niedermayer michaelni at gmx.at
Fri Jun 13 20:22:11 CEST 2008


On Thu, Jun 05, 2008 at 07:30:43PM +0200, Ivo wrote:
> On Thursday 05 June 2008 19:01, Ivan Kalvachev wrote:
[...]
> > I do not care what the system for casting vote would be, as long as it is
> > fair. I have simple system in mind, but I'd give it only if asked to.
> 
> The debian voting script could be used. I believe Michael has a hacked-up 
> version in SVN somewhere.

I do support the idea of using the debian voting script, its a fair and
simple solution.
My changes to it are below, but i do not think they will be needed. The
only thing they do is allow more then 10 candidates.


commit e68595193b2a551d83eb67f6e8685e590556f0ff
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Thu May 3 14:56:32 2007 +0200

    use lower case letters after upper case if there are more options then upper case
    letters
---
 debian-vote |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/debian-vote b/debian-vote
index 33680c4..d60d07e 100755
--- a/debian-vote
+++ b/debian-vote
@@ -86,7 +86,11 @@ def initialise_options(n):
     global options, preference
     if n<2: raise BallotError("not enough options")
 #    if n>9: raise BallotError("too many options")
-    options=[chr(ord('A')+i) for i in range(0,n-1)]
+    for i in range(0,n-1):
+        if i<26:
+            options.append(chr(ord('A')+i))
+        else:
+            options.append(chr(ord('a')+i-26))
     options.append('X')
     for o1 in options:
         for o2 in options: preference[o1+o2]=0

commit 7917a4a2732da7cc5c7420db083f4de7f22f52d2
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Thu May 3 14:51:17 2007 +0200

    remove silly "too many options" check
---
 debian-vote |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/debian-vote b/debian-vote
index b0beff8..33680c4 100755
--- a/debian-vote
+++ b/debian-vote
@@ -85,7 +85,7 @@ def initialise_options(n):
     "Initialise the data structures to store the individual votes."
     global options, preference
     if n<2: raise BallotError("not enough options")
-    if n>9: raise BallotError("too many options")
+#    if n>9: raise BallotError("too many options")
     options=[chr(ord('A')+i) for i in range(0,n-1)]
     options.append('X')
     for o1 in options:

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Republics decline into democracies and democracies degenerate into
despotisms. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20080613/7c7d0c89/attachment.pgp>


More information about the MPlayer-dev-eng mailing list