imgcreate/yuminst.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit 7bab36afbb75a4bd8bb04e08158da85e8e0acc56 Author: Brian C. Lane <[email protected]> Date: Tue Mar 25 17:47:17 2014 -0700 Update yuminst for new pykickstart diff --git a/imgcreate/yuminst.py b/imgcreate/yuminst.py index 22e840c..2b00864 100644 --- a/imgcreate/yuminst.py +++ b/imgcreate/yuminst.py @@ -23,7 +23,7 @@ import logging import yum import rpmUtils -import pykickstart.parser +from pykickstart.constants import GROUP_DEFAULT, GROUP_REQUIRED, GROUP_ALL from imgcreate.errors import * @@ -136,13 +136,13 @@ class LiveCDYum(yum.YumBase): else: logging.warn("No such package %s to remove" %(pkg,)) - def selectGroup(self, grp, include = pykickstart.parser.GROUP_DEFAULT): + def selectGroup(self, grp, include = GROUP_DEFAULT): # default to getting mandatory and default packages from a group # unless we have specific options from kickstart package_types = ['mandatory', 'default'] - if include == pykickstart.parser.GROUP_REQUIRED: + if include == GROUP_REQUIRED: package_types.remove('default') - elif include == pykickstart.parser.GROUP_ALL: + elif include == GROUP_ALL: package_types.append('optional') yum.YumBase.selectGroup(self, grp, group_package_types=package_types) -- livecd mailing list [email protected] https://admin.fedoraproject.org/mailman/listinfo/livecd
