blob: 3db5787d6ff70d39a0caa0160b55a5b6a533d4c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/usr/bin/python -O
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id: /var/cvsroot/gentoo-src/portage/bin/env-update,v 1.9 2004/10/04 13:56:50 vapier Exp $
import os,sys
os.environ["PORTAGE_CALLER"] = "env-update"
sys.path = ["/usr/lib/portage/pym"]+sys.path
def usage(status):
print "Usage: env-update"
print ""
print "See the env-update(1) man page for more info"
sys.exit(status)
if "-h" in sys.argv or "--help" in sys.argv:
usage(0)
makelinks=1
if len(sys.argv) > 1:
print "!!! Invalid command line options!\n"
usage(1)
import portage
portage.env_update(makelinks)
|