On Mon, 2011-12-19 at 17:13 +0100, Zdeněk Pavlas wrote: > --- > yum/comps.py | 5 ++--- > yum/misc.py | 6 ++++++ > 2 files changed, 8 insertions(+), 3 deletions(-) [...] > diff --git a/yum/misc.py b/yum/misc.py > index 8644978..5f874f7 100644 > --- a/yum/misc.py > +++ b/yum/misc.py > @@ -1196,3 +1196,9 @@ def cElementTree_xmlparse(filename): > """ Lazily load/run: cElementTree.parse """ > _cElementTree_import() > return __cached_cElementTree.parse(filename) > + > +def parse_pattern(pattern): > + """ Split a string to a list of package or group patterns. > + """ > + assert type(pattern) == str > + return [s.strip() for s in pattern.split(',')]
"parse" seems like the wrong verb. and "pattern" the wrong noun. My guess is that the code in cli.py, called "_splitArg" is probably closer to the meaning we want (and the code should be shared with that IMO). _______________________________________________ Yum-devel mailing list Yum-devel@lists.baseurl.org http://lists.baseurl.org/mailman/listinfo/yum-devel