[Yum-devel] [PATCH] Fix the 'yum provides ""' case. BZ 817491.
Zdeněk Pavlas
zpavlas at redhat.com
Wed May 9 11:27:27 UTC 2012
---
cli.py | 2 +-
yum/__init__.py | 5 +----
2 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/cli.py b/cli.py
index a0d8886..58de659 100755
--- a/cli.py
+++ b/cli.py
@@ -1403,7 +1403,7 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
paths = set(sys.path + os.environ['PATH'].split(':'))
nargs = []
for arg in args:
- if yum.misc.re_filename(arg) or yum.misc.re_glob(arg):
+ if yum.misc.re_filename(arg) or yum.misc.re_glob(arg) or arg == '':
continue
for path in paths:
if not path:
diff --git a/yum/__init__.py b/yum/__init__.py
index 7e67d20..8f20efa 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -3051,10 +3051,7 @@ class YumBase(depsolve.Depsolve):
def _arg_data(arg):
if not misc.re_glob(arg):
isglob = False
- if arg[0] != '/':
- canBeFile = False
- else:
- canBeFile = True
+ canBeFile = arg.startswith('/')
else:
isglob = True
canBeFile = misc.re_filename(arg)
--
1.7.4.4
More information about the Yum-devel
mailing list