Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 709969 Details for
Bug 921298
dnf install should fallback to case insensitive matching if case sensitive matching fails
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Make "yum install" partially case-insensitive.
0001-Make-yum-install-partially-case-insensitive.-BZ-9212.patch (text/plain), 1.94 KB, created by
Zdeněk Pavlas
on 2013-03-14 10:22:15 UTC
(
hide
)
Description:
Make "yum install" partially case-insensitive.
Filename:
MIME Type:
Creator:
Zdeněk Pavlas
Created:
2013-03-14 10:22:15 UTC
Size:
1.94 KB
patch
obsolete
>From e6608f7b6fba495182766830708781992c42cdb3 Mon Sep 17 00:00:00 2001 >From: Zdenek Pavlas <zpavlas@redhat.com> >Date: Thu, 14 Mar 2013 11:20:34 +0100 >Subject: [PATCH] Make "yum install" partially case-insensitive. BZ 921298 > >--- > yum/__init__.py | 2 +- > yum/packageSack.py | 8 ++++++++ > 2 files changed, 9 insertions(+), 1 deletion(-) > >diff --git a/yum/__init__.py b/yum/__init__.py >index 2bf9b43..bb34222 100644 >--- a/yum/__init__.py >+++ b/yum/__init__.py >@@ -4511,7 +4511,7 @@ much more problems). > pats = [kwargs['pattern']] > mypkgs = self.pkgSack.returnPackages(patterns=pats, > repoid=repoid, >- ignore_case=False) >+ ignore_case='auto') > pkgs.extend(mypkgs) > # if we have anything left unmatched, let's take a look for it > # being a dep like glibc.so.2 or /foo/bar/baz >diff --git a/yum/packageSack.py b/yum/packageSack.py >index a702ac1..bed6612 100644 >--- a/yum/packageSack.py >+++ b/yum/packageSack.py >@@ -488,6 +488,14 @@ class MetaSack(PackageSackBase): > """Returns a list of packages. Note that the packages are > always filtered to those matching the patterns/case. An optional > repoid allows you to easily get data for a specific repo. """ >+ if ignore_case == 'auto': >+ pkgs = self.returnPackages(repoid, patterns, False) >+ if not pkgs: >+ # retry with ignore_case=True, accept 1 name only >+ pkgs = self.returnPackages(repoid, patterns, True) >+ if len(set(po.name for po in pkgs)) > 1: >+ pkgs = [] >+ return pkgs > if not repoid: > return self._computeAggregateListResult("returnPackages", > None, patterns, ignore_case) >-- >1.7.11.7 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 921298
: 709969