From cc216a4216b588046d9f11e1c190cf13606f862b Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Fri, 3 Mar 2006 22:20:42 +0000 Subject: Mark Everything as deprecated, too. --- kickstart.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'kickstart.py') diff --git a/kickstart.py b/kickstart.py index 984ceeaa2..19f8cfd76 100644 --- a/kickstart.py +++ b/kickstart.py @@ -26,6 +26,7 @@ import string import partRequests import urlgrabber.grabber as grabber import lvm +import warnings from pykickstart.constants import * from pykickstart.parser import * from pykickstart.data import * @@ -656,9 +657,10 @@ class AnacondaKSParser(KickstartParser): # Map old broken Everything group to the new futuristic package globs def addPackages (self, line): if line[0] == '@' and line[1:].lower().strip() == "everything": - KickstartParser.addPackages(self, "*") + warnings.warn("The Everything group syntax is deprecated. It may be removed from future releases, which will result in an error from kickstart. Please use an asterisk on its own line instead.", DeprecationWarning) + KickstartParser.addPackages(self, "*") else: - KickstartParser.addPackages(self, line) + KickstartParser.addPackages(self, line) def addScript (self): if string.join(self.script["body"]).strip() == "": -- cgit