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 315450 Details for
Bug 460777
RFE: make yum _bestPackageFRomList use compare_providers()
[?]
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]
getBestArchFromList() micro-optimization
0002-getBestArchFromList-micro-optimization.patch (text/plain), 938 bytes, created by
Ville Skyttä
on 2008-08-31 18:39:28 UTC
(
hide
)
Description:
getBestArchFromList() micro-optimization
Filename:
MIME Type:
Creator:
Ville Skyttä
Created:
2008-08-31 18:39:28 UTC
Size:
938 bytes
patch
obsolete
>From a01f345dd014993758f01a32647c87b59e832dce Mon Sep 17 00:00:00 2001 >From: =?utf-8?q?Ville=20Skytt=C3=A4?= <ville.skytta@iki.fi> >Date: Sun, 31 Aug 2008 21:34:13 +0300 >Subject: [PATCH] getBestArchFromList() micro-optimization. > >--- > rpmUtils/arch.py | 5 +++-- > 1 files changed, 3 insertions(+), 2 deletions(-) > >diff --git a/rpmUtils/arch.py b/rpmUtils/arch.py >index d90659d..8d18ce3 100644 >--- a/rpmUtils/arch.py >+++ b/rpmUtils/arch.py >@@ -125,13 +125,14 @@ def getBestArchFromList(archlist, myarch=None): > then return the best arch from the list for the canonArch. > """ > >+ if len(archlist) == 0: >+ return None >+ > if myarch is None: > myarch = canonArch > > mybestarch = getBestArch(myarch) > >- if len(archlist) == 0: >- return None > bestarch = getBestArch(myarch) > if bestarch != myarch: > bestarchchoice = getBestArchFromList(archlist, bestarch) >-- >1.5.5.1 >
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 460777
:
315449
| 315450 |
317285