From d0ede7ee01341617f84c55f324b89cf1c5f79642 Mon Sep 17 00:00:00 2001 From: Andrew Gaffney Date: Wed, 20 Feb 2008 03:36:18 +0000 Subject: [PATCH] Add warning about -* in foo/use in the spec git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1309 d1e1f19c-881f-0410-ab34-b69fee027534 --- ChangeLog | 4 ++++ modules/generic_stage_target.py | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3a457d50..3558b7bd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,10 @@ # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 # $Id: $ + 20 Feb 2008; Andrew Gaffney + modules/generic_stage_target.py: + Add warning about -* in foo/use in the spec + 20 Feb 2008; Chris Gianelloni targets/embedded/embedded-chroot.sh, targets/embedded/embedded-preclean-chroot.sh, targets/grp/grp-chroot.sh, diff --git a/modules/generic_stage_target.py b/modules/generic_stage_target.py index bfc9299d..c4e81d14 100644 --- a/modules/generic_stage_target.py +++ b/modules/generic_stage_target.py @@ -1074,6 +1074,10 @@ class generic_stage_target(generic_target): myf.write("# These are the USE flags that were used in addition to what is provided by the\n# profile used for building.\n") myusevars = sorted(set(myusevars)) myf.write('USE="'+string.join(myusevars)+'"\n') + if '-*' in myusevars: + print "\nWarning!!! " + print "\tThe use of -* in " + self.settings["spec_prefix"] + "/use will cause portage to ignore\n" + print "\tpackage.use in the profile and portage_confdir. You've been warned!" """ Setup the portage overlay """ if self.settings.has_key("portage_overlay"): -- 2.26.2