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 144113 Details for
Bug 220294
Yum needs 'update only-security' feature
[?]
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.
securityonly.py
securityonly.py (text/x-python), 1.42 KB, created by
Luke Macken
on 2006-12-20 15:56:13 UTC
(
hide
)
Description:
securityonly.py
Filename:
MIME Type:
Creator:
Luke Macken
Created:
2006-12-20 15:56:13 UTC
Size:
1.42 KB
patch
obsolete
>#!/usr/bin/env python -tt ># $Revision: $ ># ># This program is free software; you can redistribute it and/or modify ># it under the terms of the GNU General Public License as published by ># the Free Software Foundation; either version 2 of the License, or ># (at your option) any later version. ># ># This program is distributed in the hope that it will be useful, ># but WITHOUT ANY WARRANTY; without even the implied warranty of ># MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ># GNU General Public License for more details. ># ># (C) Copyright 2006 Luke Macken <lmacken@redhat.com> > > >""" >Note: This is currently a proof-of-concept, and should NOT be used > in production yet since not all Fedora repositories produce > the necessary metadata. Also, this plugin is not configurable > at all yet. >""" > >import sys > >from yum.plugins import TYPE_CORE >from yum.update_md import UpdateMetadata > >requires_api_version = '2.4' >plugin_type = (TYPE_CORE,) > >def preresolve_hook(conduit): > md = UpdateMetadata() > ts = conduit.getTsInfo() > repos = conduit.getRepos() > mems = ts.getMembers() > > ## Parse the repos metadata > md.add(repos.listEnabled()) > > for m in mems: > if m.ts_state in ('i', 'u'): > notice = md.get_notice(m.pkgtup) > if not notice or notice['type'] != 'security': > conduit.info(2, "Removing non-security update: %s" % str(m)) > ts.remove(m.pkgtup)
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 Raw
Actions:
View
Attachments on
bug 220294
: 144113