From 2413fc3842b2d83c357be5b0a8993514255e0e51 Mon Sep 17 00:00:00 2001 From: Andrew Gaffney Date: Sun, 11 Jan 2009 17:21:20 -0600 Subject: [PATCH] Move read_makeconf() and parse_makeconf() from catalyst.support to catalyst.util --- ChangeLog | 6 +++ modules/catalyst/support.py | 47 +----------------------- modules/catalyst/target/generic_stage.py | 4 +- modules/catalyst/util.py | 44 ++++++++++++++++++++++ 4 files changed, 53 insertions(+), 48 deletions(-) diff --git a/ChangeLog b/ChangeLog index 478527d6..97cab638 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,12 @@ # Copyright 2002-2009 Gentoo Foundation; 2008-2009 Various authors (see AUTHORS) # Distributed under the GPL v2 + 11 Jan 2009; Andrew Gaffney + modules/catalyst/support.py, modules/catalyst/target/generic_stage.py, + modules/catalyst/util.py: + Move read_makeconf() and parse_makeconf() from catalyst.support to + catalyst.util + 11 Jan 2009; Andrew Gaffney modules/catalyst/support.py, modules/catalyst/target/generic_stage.py, modules/catalyst/target/livecd_stage2.py, diff --git a/modules/catalyst/support.py b/modules/catalyst/support.py index 8d2c0a9c..6354ac5e 100644 --- a/modules/catalyst/support.py +++ b/modules/catalyst/support.py @@ -1,7 +1,5 @@ -import sys, os, re, signal -from catalyst.output import warn -import catalyst.util +import os, re from catalyst.error import * required_config_file_values=["storedir","sharedir","distdir","portdir"] @@ -50,49 +48,6 @@ defined are not preserved. In other words, "foo", "bar", "oni" ordering is prese "item2" "item3" ordering is not, as the item strings are stored in a dictionary (hash). """ -def parse_makeconf(mylines): - mymakeconf={} - pos=0 - pat=re.compile("([0-9a-zA-Z_]*)=(.*)") - while pos