~snappy-dev/snappy/trunk-github

« back to all changes in this revision

Viewing changes to asserts/asserts.go

  • Committer: Zygmunt Krynicki
  • Date: 2016-02-05 11:26:28 UTC
  • mfrom: (1131)
  • mto: This revision was merged to the branch mainline in revision 1137.
  • Revision ID: git-v1:2f4cd12f5eb1dde16f4e7b59561026d0d125f377
Merge branch 'master' of github.com:ubuntu-core/snappy into cmd-output-testing

Show diffs side-by-side

added added

removed removed

Lines of Context:
435
435
                return nil, fmt.Errorf("unknown assertion type: %q", typ)
436
436
        }
437
437
 
 
438
        for _, primKey := range assertType.PrimaryKey {
 
439
                if _, err := checkMandatory(headers, primKey); err != nil {
 
440
                        return nil, fmt.Errorf("assertion %s: %v", assertType.Name, err)
 
441
                }
 
442
        }
 
443
 
438
444
        revision, err := checkRevision(headers)
439
445
        if err != nil {
440
446
                return nil, fmt.Errorf("assertion: %v", err)