Update %package section
Petr Hracek <[email protected]> Mon, 11 Apr 2016 10:35:59 +0200
| Newsgroups | gmane.linux.redhat.kickstart.general |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. --===============0333005219614738464== Content-Type: multipart/alternative; boundary="------------010008000504020108090604" This is a multi-part message in MIME format. --------------010008000504020108090604 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi folks, I would like to ask you on one thing. With pykickstart I read anaconda-ks.cfg file. And I would like to modify %package section from Python script. I would like to delete some of the groups and some of then add it. Can you advice me how to do it? My code snippet looks like: ~~~ from pykickstart.parser import * .... ks = KickstartParser(makeVersion()) ks.readKickstart(system_ks_path) ks.handler.packages.add(packages) ~~~ How can I do it? Greetings -- Petr Hracek Software Engineer Developer Experience Red Hat, Inc Mob: +420777056169 email: [email protected] --------------010008000504020108090604 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by mx3-phx2.redhat.com id u3B8a3br019935 <html> <head> <meta http-equiv=3D"content-type" content=3D"text/html; charset=3Dutf= -8"> </head> <body text=3D"#000000" bgcolor=3D"#FFFFFF"> Hi folks,<br> <br> I would like to ask you on one thing.<br> With pykickstart I read anaconda-ks.cfg file.<br> And I would like to modify %package section from Python script.<br> I would like to delete some of the groups and some of then add it.<br= > <br> Can you advice me how to do it?<br> <br> My code snippet looks like:<br> <br> ~~~<br> from pykickstart.parser import *<br> ....<br> ks =3D=C2=A0<span style=3D"color:#ffffff;font-weight:bold;"></span>Ki= ckstartParser<span style=3D"font-weight:bold;">(</span>makeVersion())<br> ks.readKickstart<span style=3D"font-weight:bold;">(</span>system_ks_p= ath<span style=3D"font-weight:bold;">)</span><span style=3D"color:#94558d;">= <br> </span>ks.handler.packages.add<span style=3D"font-weight:bold;">(</sp= an>packages<span style=3D"font-weight:bold;">)<br> </span>~~~<br> <br> How can I do it?<br> <br> Greetings<br> <pre class=3D"moz-signature" cols=3D"72">--=20 Petr Hracek Software Engineer Developer Experience Red Hat, Inc Mob: +420777056169 email: <a class=3D"moz-txt-link-abbreviated" href=3D"mailto:phracek@redha= t.com">[email protected]</a></pre> </body> </html> --------------010008000504020108090604-- --===============0333005219614738464== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 7bit _______________________________________________ Kickstart-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/kickstart-list --===============0333005219614738464==--