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 160181 Details for
Bug 249991
Enhancement: option for yum-priorities not to override version info
[?]
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]
priorities.py patch to add check_versions
priorities.py.patch (text/plain), 1.77 KB, created by
Allen Kistler
on 2007-07-29 04:02:33 UTC
(
hide
)
Description:
priorities.py patch to add check_versions
Filename:
MIME Type:
Creator:
Allen Kistler
Created:
2007-07-29 04:02:33 UTC
Size:
1.77 KB
patch
obsolete
>--- priorities.py~ 2007-06-29 16:50:25.000000000 -0500 >+++ priorities.py 2007-07-28 20:21:28.000000000 -0500 >@@ -38,6 +38,10 @@ > # priority for repositories is 99. The repositories with the lowest > # number have the highest priority. > # >+# If you do not want the plugin to override version checking: >+# >+# check_versions=1 >+# > # Please report errors to Daniel de Kok <danieldk@pobox.com> > > from yum.constants import * >@@ -46,13 +50,16 @@ > import yum > > check_obsoletes = False >+check_versions = False > > requires_api_version = '2.1' > plugin_type = (TYPE_CORE,) > > def config_hook(conduit): > global check_obsoletes >+ global check_versions > check_obsoletes = conduit.confBool('main', 'check_obsoletes', default=False) >+ check_versions = conduit.confBool('main', 'check_versions', default=False) > if yum.__version__ >= '2.5.0': > # New style : yum >= 2.5 > config.RepoConf.priority = config.IntOption(99) >@@ -78,7 +85,10 @@ > for repo in allrepos: > if repo.enabled: > for po in conduit.getPackages(repo): >- key = "%s.%s" % (po.name,po.arch) >+ if check_versions: >+ key = "%s-%s:%s-%s.%s" % (po.name,po.epoch,po.ver,po.rel,po.arch) >+ else: >+ key = "%s.%s" % (po.name,po.arch) > if pkg_priorities.has_key(key) and pkg_priorities[key] < repo.priority: > conduit.delPackage(po) > cnt += 1 >@@ -99,7 +109,10 @@ > def _pkglisttodict(pl, priority): > out = {} > for p in pl: >- key = "%s.%s" % (p.name,p.arch) >+ if check_versions: >+ key = "%s-%s:%s-%s.%s" % (p.name,p.epoch,p.ver,p.rel,p.arch) >+ else: >+ key = "%s.%s" % (p.name,p.arch) > out[key] = priority > return out >
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 249991
: 160181