summaryrefslogtreecommitdiffstats
path: root/comps.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-02-02 19:41:05 +0000
committerMatt Wilson <msw@redhat.com>2000-02-02 19:41:05 +0000
commitabd82bafa1ffcd8aadbed0722b6738da2bfa6c40 (patch)
tree87253a74bd623acbafa4e11f8d38d9739f3750ec /comps.py
parent48f3ac2ea801b23933201626dae6a04c39e2329c (diff)
downloadanaconda-abd82bafa1ffcd8aadbed0722b6738da2bfa6c40.tar.gz
anaconda-abd82bafa1ffcd8aadbed0722b6738da2bfa6c40.tar.xz
anaconda-abd82bafa1ffcd8aadbed0722b6738da2bfa6c40.zip
fixed lang stuff
Diffstat (limited to 'comps.py')
-rw-r--r--comps.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/comps.py b/comps.py
index 313f28dc6..85af57884 100644
--- a/comps.py
+++ b/comps.py
@@ -1,7 +1,6 @@
import sys
import rpm
import os
-from os import environ
from string import *
import types
import iutil
@@ -176,8 +175,8 @@ class ComponentSet:
return self.compsDict.keys()
def exprMatch(self, expr, arch1, arch2):
- if environ.has_key('LANG'):
- lang = environ['LANG']
+ if os.environ.has_key('LANG'):
+ lang = os.environ['LANG']
else:
lang = None
@@ -198,7 +197,8 @@ class ComponentSet:
raise ValueError, "too many arguments for lang"
if l[1] != lang:
newTruth = 0
- newTruth = 1
+ else:
+ newTruth = 1
elif l[0] == "arch":
if len(l) != 2:
raise ValueError, "too many arguments for arch"
@@ -296,7 +296,6 @@ class ComponentSet:
if conditional:
comp.addConditional (conditional, packages[l])
else:
- print "adding", packages[l]
comp.addPackage(packages[l])
everything = Component("Everything", 0, 0)