From: Andrew Gaffney Date: Sun, 11 Jan 2009 23:21:20 +0000 (-0600) Subject: Move read_makeconf() and parse_makeconf() from catalyst.support to catalyst.util X-Git-Tag: CATALYST-2.0.10~3^2~192 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2413fc3842b2d83c357be5b0a8993514255e0e51;p=catalyst.git Move read_makeconf() and parse_makeconf() from catalyst.support to catalyst.util --- 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