Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 124959 Details for
Bug 181858
yum fails to install conditional packages during groupinstall
Home
New
Search
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.rh92 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
Updated plugin
condgroup.py (text/plain), 1.74 KB, created by
Paul Nasrat
on 2006-02-21 15:28:35 UTC
(
hide
)
Description:
Updated plugin
Filename:
MIME Type:
Creator:
Paul Nasrat
Created:
2006-02-21 15:28:35 UTC
Size:
1.74 KB
patch
obsolete
># A plugin for yum which only leaves n 'kernel' packages installed instead ># of infinitely doing installonly ># ># Copyright 2006 Red Hat, Inc. ># Paul Nasrat <pnasrat@redhat.com> ># ># This program is free software; you can redistribute it and/or modify ># it under the terms of version 2 of the GNU General Public License as ># published by the Free Software Foundation ># ># 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. ># ># version 0.1 > >from yum.constants import * >from yum.plugins import TYPE_CORE, TYPE_INTERFACE > >requires_api_version = '2.2' >plugin_type = (TYPE_CORE,TYPE_INTERFACE) > >def isPackageInstalled(rpmdb, tsInfo, name): > # simplified version base on pirut/__init__.py > # FIXME: as with pirut this sucks. we should probably suck it > # into yum proper. > > installed = False > if rpmdb.installed(name = name): > installed = True > > lst = tsInfo.matchNaevr(name = name) > for txmbr in lst: > if txmbr.output_state in TS_INSTALL_STATES: > return True > if installed and len(lst) > 0: > # if we get here, then it was installed, but it's in the tsInfo > # for an erase or obsoleted --> not going to be installed at end > return False > return installed > >def preresolve_hook(conduit): > comps = conduit.getGroups() > rpmdb = conduit.getRpmDB() > ts = conduit.getTsInfo() > for grp in comps.get_groups(): > if not grp.selected: > continue > for pkg, cond in grp.conditional_packages.iteritems(): > if isPackageInstalled(rpmdb, ts, cond): > conduit._base.install(name=pkg) >
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 181858
:
124927
|
124928
|
124929
| 124959 |
124997