Bug 200177 - add -x --exclude shorthand to yum
Summary: add -x --exclude shorthand to yum
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-07-25 21:48 UTC by Nicolas Mailhot
Modified: 2014-01-21 22:54 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-07-25 22:05:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Nicolas Mailhot 2006-07-25 21:48:44 UTC
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"

Comment 1 Nicolas Mailhot 2006-07-25 22:05:46 UTC
Moving bug to upstream BZ
https://devel.linux.duke.edu/bugzilla/show_bug.cgi?id=632


Note You need to log in before you can comment on or make changes to this bug.