FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Kubuntu User

 
 
LinkBack Thread Tools
 
Old 02-15-2011, 02:24 PM
Martin Gracik
 
Default Don't always attempt to load updates on kickstart installs (#677131).

On Tue, 2011-02-15 at 10:10 -0500, Chris Lumens wrote:
> pykickstart ensures that if "updates" is given, url is set to "floppy".
> Otherwise, you've either provided a URL or skipped the command entirely.
> In the last case, url is "".
> ---
> loader/kickstart.c | 10 ++++++----
> 1 files changed, 6 insertions(+), 4 deletions(-)
>
> diff --git a/loader/kickstart.c b/loader/kickstart.c
> index 69bb8f1..6df3040 100644
> --- a/loader/kickstart.c
> +++ b/loader/kickstart.c
> @@ -497,10 +497,12 @@ static void setVnc(struct loaderData_s * loaderData, PyObject *handler) {
> static void setUpdates(struct loaderData_s * loaderData, PyObject *handler) {
> PyObject *url = getattr(handler, "updates", "url");
>
> - if (!isNotEmpty(url) || objIsStr(url, "floppy"))
> - flags |= LOADER_FLAGS_UPDATES;
> - else if (isNotEmpty(url))
> - loaderData->updatessrc = strdup(PyString_AsString(url));
> + if (isNotEmpty(url)) {
> + if (objIsStr(url, "floppy"))
> + flags |= LOADER_FLAGS_UPDATES;
> + else
> + loaderData->updatessrc = strdup(PyString_AsString(url));
> + }
>
> Py_XDECREF(url);
> }

Ack.

--
Martin Gracik <mgracik@redhat.com>

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 03:07 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org