Remove EXPERIMENTAL option, make it default.
authoridl0r <idl0r@gentoo.org>
Wed, 9 Sep 2009 17:32:18 +0000 (17:32 -0000)
committeridl0r <idl0r@gentoo.org>
Wed, 9 Sep 2009 17:32:18 +0000 (17:32 -0000)
svn path=/trunk/gentoolkit-dev/; revision=679

ChangeLog
src/imlate/imlate

index b66b82bab5a4bb59ddaaabbc259c88c614cdbc09..0730b2237b2d82d4f7139914c67b7464f9f68cd8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@
                Add search by herd or maintainer.
                Add single package mode.
                Automatic detection of TARGET/MAIN-_ARCH.
+               Remove EXPERIMENTAL option, make it default.
 
 2009-09-06: Christian Ruppert <idl0r@gentoo.org>
        * src/echangelog/echangelog: Fix regex, thanks to Magnus Granberg (zorry) <zorry@ume.nu>.
index 872af97dd8a9697b1ddd6df6c72a3dbcde649328..6cfd16c7adef93de5a48d49db8bd39b9fc61f07f 100755 (executable)
@@ -299,8 +299,7 @@ def get_imlate( conf, pkgs ):
                                        elif kwd == exclude:
                                                kwd_type = 3
                                                break
-                                       # EXPERIMENTAL
-                                       elif kwd == exclude_all and conf["EXPERIMENTAL"]:
+                                       elif kwd == exclude_all:
                                                kwd_type = 4
                                        elif kwd == testing:
                                                kwd_type = 1
@@ -309,10 +308,9 @@ def get_imlate( conf, pkgs ):
                                # ignore -arch and already stabilized packages
                                if kwd_type == 3 or kwd_type == 2:
                                        continue
-                               # EXPERIMENTAL
-                               # drop packages without ~arch or arch but -*
+                               # drop packages with -* and without ~arch or arch
                                # even if there is another version which includes arch or ~arch
-                               if kwd_type == 4 and conf["EXPERIMENTAL"]:
+                               if kwd_type == 4:
                                        continue
                                # drop "stable candidates" with mtime < 30 days
                                # Shall we use gmtime/UTC here?
@@ -368,7 +366,7 @@ def get_settings( conf = None ):
                        _cat = _cat.strip()
                        _mycats.append(_cat )
                        if _cat not in mysettings.categories:
-                               raise ValueError, "invalid categorie for -C switch '%s'" % _cat
+                               raise ValueError, "invalid category for -C switch '%s'" % _cat
                mysettings.categories = _mycats
 
        # maybe thats not necessary because we override porttrees below..
@@ -418,9 +416,9 @@ def main():
        parser.add_option( "-H", "--herd", dest = "herd", action = "store", type = "string",
                        help = "Show only packages from the specified herd", metavar = "HERD", default = None)
 
-       # EXPERIMENTAL
-       parser.add_option( "-e", "--experimental", dest = "experimental", action = "store_true", default = False,
-                                       help = "enables experimental functions/features (have a look for # EXPERIMENTAL comments in the source) [default: %default]" )
+#      # EXPERIMENTAL
+#      parser.add_option( "-e", "--experimental", dest = "experimental", action = "store_true", default = False,
+#                                      help = "enables experimental functions/features (have a look for # EXPERIMENTAL comments in the source) [default: %default]" )
 
        parser.add_option( "-C", "--category", "--categories", dest = "categories", action = "store", default = None,
                                        metavar = "CATEGORIES",
@@ -467,7 +465,7 @@ def main():
                conf["STABLE"] = options.stable
                conf["KEYWORD"] = options.keyword
 
-       conf["EXPERIMENTAL"] = options.experimental
+#      conf["EXPERIMENTAL"] = options.experimental
        conf["CATEGORIES"] = options.categories
 
        conf["MAINTAINER"] = options.maintainer