Make sure myopts does not contain duplicate options for bug 124204.
authorZac Medico <zmedico@gentoo.org>
Mon, 27 Feb 2006 00:44:54 +0000 (00:44 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 27 Feb 2006 00:44:54 +0000 (00:44 -0000)
svn path=/main/trunk/; revision=2794

bin/emerge

index 5a1ce5c69e5aa606bba2a86c865293c5be6ac025..b52bfa08d37b0754d329e198df4c62aa4a2207bf 100755 (executable)
@@ -254,7 +254,8 @@ for x in cmdline:
                elif x == "--skip-first":
                        x = "--skipfirst"
                if x in options:
-                       myopts.append(x)
+                       if x not in myopts:
+                               myopts.append(x)
                elif x[2:] in actions:
                        if myaction:
                                if myaction not in ["system", "world"]: