~mvo/snappy/snappy-os-snap-support

« back to all changes in this revision

Viewing changes to snappy/click.go

  • Committer: Snappy Tarmac
  • Author(s): John R. Lenton
  • Date: 2015-04-23 15:22:11 UTC
  • mfrom: (426.1.1 argh)
  • Revision ID: snappy_tarmac-20150423152211-y8k8gnjije0i4qwz
Don't abort generateBinaryWrapper with spurious this-has-no-namespace error. by chipaca approved by mvo

Show diffs side-by-side

added added

removed removed

Lines of Context:
403
403
ubuntu-core-launcher {{.UdevAppName}} {{.AaProfile}} {{.Target}} "$@"
404
404
`
405
405
 
406
 
        namespace, err := namespaceFromYamlPath(filepath.Join(pkgPath, "meta", "package.yaml"))
407
 
        if err != nil {
408
 
                return "", err
409
 
        }
 
406
        // it's fine for this to error out; we might be in a framework or sth
 
407
        namespace, _ := namespaceFromYamlPath(filepath.Join(pkgPath, "meta", "package.yaml"))
410
408
 
411
409
        if err := verifyBinariesYaml(binary); err != nil {
412
410
                return "", err