Esempio n. 1
0
	def __init__(self):
		ModuleBase.__init__(self)
		self.command_name = "enalyze"
		self.module_name = "rebuild"
		self.options = {
			"use": False,
			"keywords": False,
			"unmask": False,
			"verbose": False,
			"quiet": False,
			"exact": False,
			"pretend": False,
			"prefix": False,
			"portage": True,
			"slot": False
			#"unset": False
		}
		self.module_opts = {
			"-p": ("pretend", "boolean", True),
			"--pretend": ("pretend", "boolean", True),
			"-e": ("exact", "boolean", True),
			"--exact": ("exact", "boolean", True),
			"-s": ("slot", "boolean", True),
			"--slot": ("slot", "boolean", True),
			"-v": ("verbose", "boolean", True),
			"--verbose": ("verbose", "boolean", True),
		}
		self.formatted_options = [
			("    -h, --help",  "Outputs this useage message"),
			("    -p, --pretend", "Does not actually create the files."),
			("    ", "It directs the outputs to the screen"),
			("    -e, --exact", "will atomize the package with a"),
			("  ", "leading '=' and include the version"),
			("    -s, --slot", "will atomize the package with a"),
			("  ", "leading '=' and include the slot")
		]
		self.formatted_args = [
			("    use",
			"causes the action to analyze the installed packages USE flags"),
			("    keywords",
			"causes the action to analyze the installed packages keywords"),
			("    unmask",
			"causes the action to analyze the installed packages " + \
			"current mask status")
		]
		self.short_opts = "hepsv"
		self.long_opts = ("help", "exact", "pretend", "slot", "verbose")
		self.need_queries = True
		self.arg_spec = "TargetSpec"
		self.arg_options = ['use', 'keywords', 'unmask']
		self.arg_option = False
		self.warning = (
			"     CAUTION",
			"This is beta software and some features/options are incomplete,",
			"some features may change in future releases includig its name.",
			"The file generated is saved in your home directory",
			"Feedback will be appreciated, http://bugs.gentoo.org")
Esempio n. 2
0
 def __init__(self):
     ModuleBase.__init__(self)
     self.command_name = "enalyze"
     self.module_name = "analyze"
     self.options = {
         "flags": False,
         "keywords": False,
         "packages": False,
         "unset": False,
         "verbose": False,
         "quiet": False,
         "prefix": False,
         "portage": True,
     }
     self.module_opts = {
         "-f": ("flags", "boolean", True),
         "--flags": ("flags", "boolean", True),
         "-k": ("keywords", "boolean", True),
         "--keywords": ("keywords", "boolean", True),
         "-u": ("unset", "boolean", True),
         "--unset": ("unset", "boolean", True),
         "-v": ("verbose", "boolean", True),
         "--verbose": ("verbose", "boolean", True),
         "-p": ("prefix", "boolean", True),
         "--prefix": ("prefix", "boolean", True),
         "-G": ("portage", "boolean", False),
         "--portage": ("portage", "boolean", False),
     }
     self.formatted_options = [
         ("  -h, --help", "Outputs this useage message"),
         ("  -a, --analyze", "Action, sets the module to gather data and output the"),
         ("", "formatted stats/information to the screen"),
         ("  -u, --unset", "Additionally include any unset USE flags and the packages"),
         ("", "that could use them"),
         ("  -v, --verbose", "Used in the analyze action to output more detailed information"),
         (
             "  -p, --prefix",
             "Used for testing purposes only, runs report using " + "a prefix keyword and 'prefix' USE flag",
         ),
         # (" -G, --portage",
         # "Use portage directly instead of gentoolkit's Package " +
         # "object for some operations. Usually a little faster."),
     ]
     self.formatted_args = [
         ("  use", "Causes the action to analyze the installed packages USE flags"),
         ("  pkguse", "Causes the action to analyze the installed packages PKGUSE flags"),
         ("  ", "These are flags that have been set in /etc/portage/package.use"),
         ("  keywords", "Causes the action to analyze the installed packages keywords"),
         ("  packages", "Causes the action to analyze the installed packages and the"),
         ("  ", "USE flags they were installed with"),
         ("  unmask", "Causes the action to analyze the installed packages"),
         ("  ", "for those that need to be unmasked"),
     ]
     self.short_opts = "huvpG"
     self.long_opts = ("help", "unset", "verbose", "prefix")  # , "portage")
     self.need_queries = True
     self.arg_spec = "Target"
     self.arg_options = ["use", "pkguse", "keywords", "packages", "unmask"]
     self.arg_option = False
     self.warning = (
         "   CAUTION",
         "This is beta software and some features/options are incomplete,",
         "some features may change in future releases includig its name.",
         "Feedback will be appreciated, http://bugs.gentoo.org",
     )
Esempio n. 3
0
	def __init__(self):
		ModuleBase.__init__(self)
		self.command_name = "enalyze"
		self.module_name = "analyze"
		self.options = {
			"flags": False,
			"keywords": False,
			"packages": False,
			"unset": False,
			"verbose": False,
			"quiet": False,
			'prefix': False,
			'portage': True,
			"width": 80,
			"prepend": "",
		}
		self.module_opts = {
			"-f": ("flags", "boolean", True),
			"--flags": ("flags", "boolean", True),
			"-k": ("keywords", "boolean", True),
			"--keywords": ("keywords", "boolean", True),
			"-u": ("unset", "boolean", True),
			"--unset": ("unset", "boolean", True),
			"-v": ("verbose", "boolean", True),
			"--verbose": ("verbose", "boolean", True),
			"-p": ("prefix", "boolean", True),
			"--prefix": ("prefix", "boolean", True),
			"-P": ("prepend", "char", None),
			"--prepend": ("prepend", "char", None),
			"-G": ("portage", "boolean", False),
			"--portage": ("portage", "boolean", False),
			"-W": ("width", "int", 80),
			"--width": ("width", "int", 80),
		}
		self.formatted_options = [
			("  -h, --help",  "Outputs this useage message"),
			("  -u, --unset",
			"Additionally include any unset USE flags and the packages"),
			("", "that could use them"),
			("  -v, --verbose",
			"Used in the analyze action to output more detailed information"),
			("  -p, --prefix",
			"Used for testing purposes only, runs report using " +
			"a prefix keyword and 'prefix' USE flag"),
			("  -P, --prepend",
			"Prepend the string to any list output.  " +
			"ie: prepend '* ' to the ""front of each package being listed."
			"This is useful for generating preformatted wiki text."),
			#(" -G, --portage",
			#"Use portage directly instead of gentoolkit's Package " +
			#"object for some operations. Usually a little faster."),
			("  -W, --width",
			"Format the output to wrap at 'WIDTH' ie: long line output"),
		]
		self.formatted_args = [
			("  use",
			"Causes the action to analyze the installed packages USE flags"),
			("  pkguse",
			"Causes the action to analyze the installed packages PKGUSE flags"),
			("  ",
			"These are flags that have been set in /etc/portage/package.use"),
			("  keywords",
			"Causes the action to analyze the installed packages keywords"),
			("  packages",
			"Causes the action to analyze the installed packages and the"),
			("  ",
			"USE flags they were installed with"),
			("  unmask",
			"Causes the action to analyze the installed packages"),
			("  ",
			"for those that need to be unmasked")
		]
		self.short_opts = "huvpGP:W:"
		self.long_opts = ("help", "unset", "verbose", "prefix", "prepend=",
						"width=") #, "portage")
		self.need_queries = True
		self.arg_spec = "Target"
		self.arg_options = ['use', 'pkguse','keywords', 'packages', 'unmask']
		self.arg_option = False
		self.warning = (
			"   CAUTION",
			"This is beta software and some features/options are incomplete,",
			"some features may change in future releases includig its name.",
			"Feedback will be appreciated, http://bugs.gentoo.org")
Esempio n. 4
0
 def __init__(self):
     ModuleBase.__init__(self)
     self.command_name = "enalyze"
     self.module_name = "analyze"
     self.options = {
         "flags": False,
         "keywords": False,
         "packages": False,
         "unset": False,
         "verbose": False,
         "quiet": False,
         'prefix': False,
         'portage': True
     }
     self.module_opts = {
         "-f": ("flags", "boolean", True),
         "--flags": ("flags", "boolean", True),
         "-k": ("keywords", "boolean", True),
         "--keywords": ("keywords", "boolean", True),
         "-u": ("unset", "boolean", True),
         "--unset": ("unset", "boolean", True),
         "-v": ("verbose", "boolean", True),
         "--verbose": ("verbose", "boolean", True),
         "-p": ("prefix", "boolean", True),
         "--prefix": ("prefix", "boolean", True),
         "-G": ("portage", "boolean", False),
         "--portage": ("portage", "boolean", False),
     }
     self.formatted_options = [
         ("  -h, --help", "Outputs this useage message"),
         ("  -u, --unset",
          "Additionally include any unset USE flags and the packages"),
         ("", "that could use them"),
         ("  -v, --verbose",
          "Used in the analyze action to output more detailed information"),
         ("  -p, --prefix",
          "Used for testing purposes only, runs report using " +
          "a prefix keyword and 'prefix' USE flag"),
         #(" -G, --portage",
         #"Use portage directly instead of gentoolkit's Package " +
         #"object for some operations. Usually a little faster."),
     ]
     self.formatted_args = [
         ("  use",
          "Causes the action to analyze the installed packages USE flags"),
         ("  pkguse",
          "Causes the action to analyze the installed packages PKGUSE flags"
          ),
         ("  ",
          "These are flags that have been set in /etc/portage/package.use"),
         ("  keywords",
          "Causes the action to analyze the installed packages keywords"),
         ("  packages",
          "Causes the action to analyze the installed packages and the"),
         ("  ", "USE flags they were installed with"),
         ("  unmask",
          "Causes the action to analyze the installed packages"),
         ("  ", "for those that need to be unmasked")
     ]
     self.short_opts = "huvpG"
     self.long_opts = ("help", "unset", "verbose", "prefix")  #, "portage")
     self.need_queries = True
     self.arg_spec = "Target"
     self.arg_options = ['use', 'pkguse', 'keywords', 'packages', 'unmask']
     self.arg_option = False
     self.warning = (
         "   CAUTION",
         "This is beta software and some features/options are incomplete,",
         "some features may change in future releases includig its name.",
         "Feedback will be appreciated, http://bugs.gentoo.org")
Esempio n. 5
0
 def __init__(self):
     ModuleBase.__init__(self)
     self.command_name = "enalyze"
     self.module_name = "analyze"
     self.options = {
         "flags": False,
         "keywords": False,
         "packages": False,
         "unset": False,
         "verbose": False,
         "quiet": False,
         "prefix": False,
         "portage": True,
         "width": 80,
         "prepend": "",
     }
     self.module_opts = {
         "-f": ("flags", "boolean", True),
         "--flags": ("flags", "boolean", True),
         "-k": ("keywords", "boolean", True),
         "--keywords": ("keywords", "boolean", True),
         "-u": ("unset", "boolean", True),
         "--unset": ("unset", "boolean", True),
         "-v": ("verbose", "boolean", True),
         "--verbose": ("verbose", "boolean", True),
         "-p": ("prefix", "boolean", True),
         "--prefix": ("prefix", "boolean", True),
         "-P": ("prepend", "char", None),
         "--prepend": ("prepend", "char", None),
         "-G": ("portage", "boolean", False),
         "--portage": ("portage", "boolean", False),
         "-W": ("width", "int", 80),
         "--width": ("width", "int", 80),
     }
     self.formatted_options = [
         ("  -h, --help", "Outputs this useage message"),
         (
             "  -u, --unset",
             "Additionally include any unset USE flags and the packages",
         ),
         ("", "that could use them"),
         (
             "  -v, --verbose",
             "Used in the analyze action to output more detailed information",
         ),
         (
             "  -p, --prefix",
             "Used for testing purposes only, runs report using " +
             "a prefix keyword and 'prefix' USE flag",
         ),
         (
             "  -P, --prepend",
             "Prepend the string to any list output.  " +
             "ie: prepend '* ' to the "
             "front of each package being listed."
             "This is useful for generating preformatted wiki text.",
         ),
         # (" -G, --portage",
         # "Use portage directly instead of gentoolkit's Package " +
         # "object for some operations. Usually a little faster."),
         (
             "  -W, --width",
             "Format the output to wrap at 'WIDTH' ie: long line output",
         ),
     ]
     self.formatted_args = [
         ("  use",
          "Causes the action to analyze the installed packages USE flags"),
         (
             "  pkguse",
             "Causes the action to analyze the installed packages PKGUSE flags",
         ),
         ("  ",
          "These are flags that have been set in /etc/portage/package.use"),
         (
             "  keywords",
             "Causes the action to analyze the installed packages keywords",
         ),
         (
             "  packages",
             "Causes the action to analyze the installed packages and the",
         ),
         ("  ", "USE flags they were installed with"),
         ("  unmask",
          "Causes the action to analyze the installed packages"),
         ("  ", "for those that need to be unmasked"),
     ]
     self.short_opts = "huvpGP:W:"
     self.long_opts = (
         "help",
         "unset",
         "verbose",
         "prefix",
         "prepend=",
         "width=",
     )  # , "portage")
     self.need_queries = True
     self.arg_spec = "Target"
     self.arg_options = ["use", "pkguse", "keywords", "packages", "unmask"]
     self.arg_option = False
     self.warning = (
         "   CAUTION",
         "This is beta software and some features/options are incomplete,",
         "some features may change in future releases includig its name.",
         "Feedback will be appreciated, http://bugs.gentoo.org",
     )