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 709974 Details for
Bug 919852
Tab Completion Slower in Fedora than Ubuntu using CLI Package Manager
[?]
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]
faster bash completion of available packages.
0001-faster-bash-completion-of-available-packages.-BZ-919.patch (text/plain), 1.19 KB, created by
Zdeněk Pavlas
on 2013-03-14 10:55:48 UTC
(
hide
)
Description:
faster bash completion of available packages.
Filename:
MIME Type:
Creator:
Zdeněk Pavlas
Created:
2013-03-14 10:55:48 UTC
Size:
1.19 KB
patch
obsolete
>From 24cb9189c2d110ea3b52efa19cece3f9182b6e3d Mon Sep 17 00:00:00 2001 >From: Zdenek Pavlas <zpavlas@redhat.com> >Date: Mon, 11 Mar 2013 09:38:50 +0100 >Subject: [PATCH 1/2] faster bash completion of available packages. BZ 919852 > >With "export YUM_CACHEDIR=/var/cache/yum" the shortcut code >is enabled. Cached package databases are queried directly >with no filtering, so more packages might be offered: > >1) disabled repositories are used >2) excludes are not processed >3) no compatible arch check >4) no rpmdb check > >..but it's about 5 times faster. >--- > etc/yum.bash | 8 ++++++++ > 1 file changed, 8 insertions(+) > >diff --git a/etc/yum.bash b/etc/yum.bash >index d741ff9..634a77d 100644 >--- a/etc/yum.bash >+++ b/etc/yum.bash >@@ -3,6 +3,14 @@ > _yum_helper() > { > local IFS=$'\n' >+ if [[ -n "$YUM_CACHEDIR" && "$1 $2" == "list available" ]]; then >+ for db in $(find "$YUM_CACHEDIR" -name 'primary_db.sqlite'); do >+ COMPREPLY+=( $( sqlite3 "$db" \ >+ "SELECT name||'.'||arch FROM packages WHERE name LIKE '$3%'" >+ ) ) >+ done >+ return >+ fi > COMPREPLY+=( $( > /usr/share/yum-cli/completion-helper.py -d 0 -C "$@" 2>/dev/null ) ) > } >-- >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 919852
: 709974