Merge lp:~pedronis/goget-ubuntu-touch/use-read-info-from-snapfile into lp:~snappy-dev/goget-ubuntu-touch/all-snaps

Proposed by Samuele Pedroni
Status: Merged
Merged at revision: 275
Proposed branch: lp:~pedronis/goget-ubuntu-touch/use-read-info-from-snapfile
Merge into: lp:~snappy-dev/goget-ubuntu-touch/all-snaps
Diff against target: 12 lines (+1/-1)
1 file modified
ubuntu-device-flash/snappy.go (+1/-1)
To merge this branch: bzr merge lp:~pedronis/goget-ubuntu-touch/use-read-info-from-snapfile
Reviewer Review Type Date Requested Status
Zygmunt Krynicki Approve
Review via email: mp+293501@code.launchpad.net

Description of the change

use ReadInfoFromSnapFile as plan is to remove File.Info

To post a comment you must log in.
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ubuntu-device-flash/snappy.go'
2--- ubuntu-device-flash/snappy.go 2016-04-27 06:49:39 +0000
3+++ ubuntu-device-flash/snappy.go 2016-05-02 07:49:39 +0000
4@@ -244,7 +244,7 @@
5 if err != nil {
6 return fmt.Errorf("can not read %v", fullname)
7 }
8- info, err := snapFile.Info()
9+ info, err := snap.ReadInfoFromSnapFile(snapFile, nil)
10 if err != nil {
11 return fmt.Errorf("can not get info for %v", fullname)
12 }

Subscribers

People subscribed via source and target branches