cooker: don't choke if we have nothing to parse
[bitbake.git] / bin / bitbake-diffsigs
1 #!/usr/bin/env python
2 import os
3 import sys
4 import warnings
5 sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(sys.argv[0])), 'lib'))
6
7 import bb.siggen
8
9 if len(sys.argv) > 2:
10     bb.siggen.compare_sigfiles(sys.argv[1], sys.argv[2])
11 else:
12     bb.siggen.dump_sigfile(sys.argv[1])