From 99a612fb0a4e59a8bb6c09c184054bd949bf500d Mon Sep 17 00:00:00 2001 From: Will Woods Date: Thu, 23 Jun 2011 17:30:42 -0400 Subject: [PATCH] TreeBuilder: fix removelocales --- src/pylorax/treebuilder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pylorax/treebuilder.py b/src/pylorax/treebuilder.py index 775b47f5..b9dd6ae9 100644 --- a/src/pylorax/treebuilder.py +++ b/src/pylorax/treebuilder.py @@ -123,7 +123,7 @@ class RuntimeBuilder(object): # get removelocales list first localedir = joinpaths(self.vars.root, "usr/share/locale") langtable = joinpaths(self.vars.root, "usr/share/anaconda/lang-table") - locales = set([basename(d) for d in _glob("*", localedir) if isdir(d)]) + locales = set([basename(d) for d in _glob(localedir+"/*") if isdir(d)]) keeplocales = set([line.split()[1] for line in open(langtable)]) removelocales = locales.difference(keeplocales) self.runtemplate("runtime-cleanup.tmpl", removelocales=removelocales)