Description of problem: When rawhide is increadibly broken just before a test release yum needs long lists of --excludes to update it. When I write them late in the evening I always end up with many typoes in one or more excludes. For people with exclude-spelling defficiency like me a -x shorthand would be great Version-Release number of selected component (if applicable): yum-2.9.3-1 Paul Nasrat suggests the following patch: Index: cli.py =================================================================== RCS file: /home/groups/yum/cvs/yum/cli.py,v retrieving revision 1.222 diff -u -u -r1.222 cli.py --- cli.py 11 Jul 2006 18:35:13 -0000 1.222 +++ cli.py 25 Jul 2006 21:26:08 -0000 @@ -143,7 +143,7 @@ type='string', callback=repo_optcb, dest='repos', default=[], help="disable one or more repositories (wildcards allowed)", metavar='[repo]') - self.optparser.add_option("", "--exclude", dest="exclude", default=[], + self.optparser.add_option("-x", "--exclude", dest="exclude", default=[], action="append", help="exclude package(s) by name or glob", metavar='[package]') self.optparser.add_option("", "--obsoletes", dest="obsoletes"
Moving bug to upstream BZ https://devel.linux.duke.edu/bugzilla/show_bug.cgi?id=632