1 | #!/usr/bin/env python |
---|
2 | """ |
---|
3 | usage: check_eggs.py |
---|
4 | """ |
---|
5 | import os, sys, logging |
---|
6 | |
---|
7 | root = logging.getLogger() |
---|
8 | root.setLevel( 10 ) |
---|
9 | root.addHandler( logging.StreamHandler( sys.stdout ) ) |
---|
10 | |
---|
11 | lib = os.path.abspath( os.path.join( os.path.dirname( __file__ ), "..", "lib" ) ) |
---|
12 | sys.path.append( lib ) |
---|
13 | |
---|
14 | try: |
---|
15 | assert sys.argv[1] == 'quiet' |
---|
16 | quiet = True |
---|
17 | except: |
---|
18 | quiet = False |
---|
19 | |
---|
20 | from galaxy.eggs import Crate |
---|
21 | |
---|
22 | c = Crate() |
---|
23 | if c.config_missing: |
---|
24 | if not quiet: |
---|
25 | print "Some of your Galaxy eggs are out of date. Please update them" |
---|
26 | print "by running:" |
---|
27 | print " python scripts/fetch_eggs.py" |
---|
28 | sys.exit( 1 ) |
---|
29 | sys.exit( 0 ) |
---|