~mvo/click/dont-crash-for-empty-db

« back to all changes in this revision

Viewing changes to click/commands/buildsource.py

  • Committer: Colin Watson
  • Date: 2014-06-23 11:10:12 UTC
  • mfrom: (470.1.4 more-tests3)
  • Revision ID: cjwatson@canonical.com-20140623111012-7ti020s3v1y0vi9q
Add integration tests for buildsource, pkgdir and framework.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
    directory = args[0]
36
36
    if not os.path.isdir(directory):
37
37
        parser.error('directory "%s" does not exist' % directory)
 
38
    if not options.manifest:
 
39
        options.manifest = os.path.join(directory, "manifest.json")
38
40
    if os.path.isdir(os.path.join(directory, options.manifest)):
39
41
        options.manifest = os.path.join(options.manifest, "manifest.json")
40
42
    if not os.path.exists(os.path.join(directory, options.manifest)):