[pykickstart PATCH] ostreesetup: New command
Vratislav Podzimek
vpodzime at redhat.com
Wed Mar 26 08:31:57 UTC 2014
On Wed, 2014-03-26 at 01:28 +0000, Colin Walters wrote:
> [ Rebased onto master, fixed up for comments from anaconda-devel
> thread:
>
> https://www.redhat.com/archives/anaconda-devel-list/2014-March/msg00028.html
> ]
>
>
> This tells the installer to handle an OSTree repository.
> ---
> pykickstart/commands/__init__.py | 3 +-
> pykickstart/commands/ostreesetup.py | 75
> +++++++++++++++++++++++++++++++++++++
> pykickstart/handlers/control.py | 2 +
> tests/commands/ostreesetup.py | 38 +++++++++++++++++++
> 4 files changed, 117 insertions(+), 1 deletion(-)
> create mode 100644 pykickstart/commands/ostreesetup.py
> create mode 100644 tests/commands/ostreesetup.py
+ if self.osname:
+ retcmd.append("--osname=\"%s\"" % self.osname)
+ if self.remote:
+ retcmd.append("--remote=\"%s\"" % self.remote)
+ if self.url:
+ retcmd.append("--url=\"%s\"" % self.url)
+ if self.ref:
+ retcmd.append("--ref=\"%s\"" % self.ref)
You can use single quotes for strings in all these lines instead of escaping double quotes.
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic
More information about the anaconda-patches
mailing list