diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-11-24 02:57:53 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-11-24 02:57:53 +0000 |
commit | 3d18597f176cdf616c547157e4a1df52ac3c758f (patch) | |
tree | 04bc933c0a6ba2a4caf0234378670272e91e2259 /pym/portage/_sets/shell.py | |
parent | 8b5fe8f0fb990159edd75c4b026f6ec77094039a (diff) | |
download | portage-3d18597f176cdf616c547157e4a1df52ac3c758f.tar.gz portage-3d18597f176cdf616c547157e4a1df52ac3c758f.tar.bz2 portage-3d18597f176cdf616c547157e4a1df52ac3c758f.zip |
Remove unused package sets and glsa stuff.
svn path=/main/branches/2.1.6/; revision=12076
Diffstat (limited to 'pym/portage/_sets/shell.py')
-rw-r--r-- | pym/portage/_sets/shell.py | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/pym/portage/_sets/shell.py b/pym/portage/_sets/shell.py deleted file mode 100644 index 015c51b92..000000000 --- a/pym/portage/_sets/shell.py +++ /dev/null @@ -1,44 +0,0 @@ -# Copyright 2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -import subprocess -import os - -from portage._sets.base import PackageSet -from portage._sets import SetConfigError - -__all__ = ["CommandOutputSet"] - -class CommandOutputSet(PackageSet): - """This class creates a PackageSet from the output of a shell command. - The shell command should produce one atom per line, that is: - - >>> atom1 - atom2 - ... - atomN - - Args: - name: A string that identifies the set. - command: A string or sequence identifying the command to run - (see the subprocess.Popen documentaion for the format) - """ - _operations = ["merge", "unmerge"] - - def __init__(self, command): - super(CommandOutputSet, self).__init__() - self._command = command - self.description = "Package set generated from output of '%s'" % self._command - - def load(self): - pipe = subprocess.Popen(self._command, stdout=subprocess.PIPE, shell=True) - if pipe.wait() == os.EX_OK: - text = pipe.stdout.read() - self._setAtoms(text.split("\n")) - - def singleBuilder(self, options, settings, trees): - if not "command" in options: - raise SetConfigError("no command specified") - return CommandOutputSet(options["command"]) - singleBuilder = classmethod(singleBuilder) |