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 290612 Details for
Bug 426944
RFE: add installlangs
[?]
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]
patch
pykickstart-instlang.patch (text/plain), 1.85 KB, created by
Jeremy Katz
on 2008-01-01 17:13:07 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Jeremy Katz
Created:
2008-01-01 17:13:07 UTC
Size:
1.85 KB
patch
obsolete
>diff --git a/pykickstart/parser.py b/pykickstart/parser.py >index 07f175b..4aabcf1 100644 >--- a/pykickstart/parser.py >+++ b/pykickstart/parser.py >@@ -250,6 +250,7 @@ class Packages: > be KS_MISSING_* from pykickstart.constants. > packageList -- A list of all the packages specified in the > %packages section. >+ installLangs -- Languages to install > """ > self.addBase = True > self.default = False >@@ -258,6 +259,7 @@ class Packages: > self.groupList = [] > self.handleMissing = KS_MISSING_PROMPT > self.packageList = [] >+ self.installLangs = None > > def __str__(self): > """Return a string formatted for output to a kickstart file.""" >@@ -286,6 +288,8 @@ class Packages: > retval += " --nobase" > if self.handleMissing == KS_MISSING_IGNORE: > retval += " --ignoremissing" >+ if self.installLangs: >+ retval += "--installlangs=%s" %(self.installLangs,) > > if ver >= F8: > return retval + "\n" + pkgs + "\n%end\n" >@@ -430,6 +434,7 @@ class KickstartParser: > deprecated=FC4, removed=F9) > op.add_option("--default", dest="defaultPackages", action="store_true", > default=False, introduced=F7) >+ op.add_option("--installlangs", dest="langs", type="string") > > (opts, extra) = op.parse_args(args=args[1:]) > >@@ -443,6 +448,9 @@ class KickstartParser: > if opts.defaultPackages: > self.handler.packages.default = True > >+ if opts.langs: >+ self.handler.packages.installLangs = opts.langs >+ > def handleScriptHdr (self, lineno, args): > """Process the arguments to a %pre/%post/%traceback header for later > setting on a Script instance once the end of the script is found.
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 426944
: 290612