From 991509a6ff086c485b9b94d0afb4a03e03dd855f Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Fri, 30 Mar 2007 19:54:49 +0000 Subject: [PATCH] Use urlgrabber so %include files can be URLs (#234351). --- ChangeLog | 5 +++++ pykickstart/parser.py | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4019c0c..ae1f65e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-03-30 Chris Lumens + + * pykickstart/parser.py (KickstartParser.readKickstart): Use + urlgrabber so %include files can be URLs (#234351). + 2007-03-19 Chris Lumens * pykickstart.spec, setup.py: New version. diff --git a/pykickstart/parser.py b/pykickstart/parser.py index a78ba6c..7c4d9e8 100644 --- a/pykickstart/parser.py +++ b/pykickstart/parser.py @@ -3,7 +3,7 @@ # # Chris Lumens # -# Copyright 2005, 2006 Red Hat, Inc. +# Copyright 2005, 2006, 2007 Red Hat, Inc. # # This software may be freely redistributed under the terms of the GNU # general public license. @@ -29,6 +29,7 @@ import sys import string from copy import copy from optparse import * +from urlgrabber import urlopen from constants import * from errors import * @@ -534,6 +535,6 @@ class KickstartParser: if reset: self._reset() - fh = open(file) + fh = urlopen(file) self._stateMachine (lambda: fh.readline()) fh.close() -- 2.11.4.GIT