diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-03-17 19:30:58 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-03-17 19:30:58 +0000 |
commit | a97f2f41d324588a4d4bd698b6e98b00b7e2c529 (patch) | |
tree | 618b45f6248c3c6364df812f5ada44772dde02d8 /pym | |
parent | 5b5e8298bddc57d6e8d2165a4f3e780ea392419f (diff) | |
download | portage-a97f2f41d324588a4d4bd698b6e98b00b7e2c529.tar.gz portage-a97f2f41d324588a4d4bd698b6e98b00b7e2c529.tar.bz2 portage-a97f2f41d324588a4d4bd698b6e98b00b7e2c529.zip |
Validate argument atoms earlier for build actions. (trunk r13126)v2.1.6.9
svn path=/main/branches/2.1.6/; revision=13127
Diffstat (limited to 'pym')
-rw-r--r-- | pym/_emerge/__init__.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 50d6b7cd2..2dfafd211 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -15171,6 +15171,18 @@ def emerge_main(): # "update", "system", or just process files: else: validate_ebuild_environment(trees) + + for x in myfiles: + if x.startswith(SETPREFIX) or \ + is_valid_package_atom(x): + continue + msg = [] + msg.append("'%s' is not a valid package atom." % (x,)) + msg.append("Please check ebuild(5) for full details.") + writemsg_level("".join("!!! %s\n" % line for line in msg), + level=logging.ERROR, noiselevel=-1) + return 1 + if "--pretend" not in myopts: display_news_notification(root_config, myopts) retval = action_build(settings, trees, mtimedb, |