From 5994db80b1e4e87f8cd56c0319c2de839bf9b8a3 Mon Sep 17 00:00:00 2001 From: Andrew Gaffney <agaffney@gentoo.org> Date: Wed, 13 Feb 2008 21:48:10 +0000 Subject: [PATCH] Sort and de-dupe myusevars git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1299 d1e1f19c-881f-0410-ab34-b69fee027534 --- ChangeLog | 4 ++++ modules/generic_stage_target.py | 1 + 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 62507c6e..0a67815b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,10 @@ # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 # $Id: $ + 13 Feb 2008; Andrew Gaffney <agaffney@gentoo.org> + modules/generic_stage_target.py: + Sort and de-dupe myusevars + 13 Feb 2008; Chris Gianelloni <wolf31o2@gentoo.org> targets/stage1/stage1-chroot.sh: Modify stage1-chroot.sh to use the actual -d/--debug code already in catalyst. diff --git a/modules/generic_stage_target.py b/modules/generic_stage_target.py index f6c47146..e949e47e 100644 --- a/modules/generic_stage_target.py +++ b/modules/generic_stage_target.py @@ -919,6 +919,7 @@ class generic_stage_target(generic_target): myusevars.extend(self.settings["use"]) if myusevars: + myusevars = sorted(set(myusevars)) myf.write('USE="'+string.join(myusevars)+'"\n') # Setup the portage overlay -- 2.26.2