blob: 68091cac5bb7c4b061d1b3c5e08bec2acd4ab7f4 (
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
27
28
|
import sys
from jhbuild.commands import Command, register_command
import sysdeps
class cmd_depscheck(Command):
name = 'depscheck'
usage_args = ''
def run(self, config, options, args):
deps = sysdeps.get_packages()
if not deps:
print 'Dependencies information is missing, skip sanity check.'
return
missing_deps = []
for package, source in deps:
if not sysdeps.check_package(package):
missing_deps.append(package)
if missing_deps:
print 'Missing packages:'
print ' '.join(missing_deps)
sys.exit(1)
register_command(cmd_depscheck)
|