~stephen-stewart/snapweb/client-side-filtering-and-ordering

« back to all changes in this revision

Viewing changes to oem/oem.go

  • Committer: Snappy Tarmac
  • Author(s): Sergio Schvezov
  • Date: 2015-05-03 18:39:40 UTC
  • mfrom: (103.1.3 webdm)
  • Revision ID: snappy_tarmac-20150503183940-0o993y0ur4hhsfp3
Removing unused oem handler and updating to yaml.v2 to reduce the dependencies. by sergiusens approved by chipaca

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
        "errors"
5
5
        "io/ioutil"
6
6
 
7
 
        "launchpad.net/goyaml"
 
7
        "gopkg.in/yaml.v2"
8
8
)
9
9
 
10
10
type oem struct {
40
40
                return pkg, ErrDecode
41
41
        }
42
42
 
43
 
        if err := goyaml.Unmarshal([]byte(f), &pkg); err != nil {
 
43
        if err := yaml.Unmarshal([]byte(f), &pkg); err != nil {
44
44
                return pkg, ErrDecode
45
45
        }
46
46