Merge lp:~hamo/snappy/check_local_dir into lp:~snappy-dev/snappy/snappy-moved-to-github

Proposed by Yang Bai
Status: Merged
Approved by: Michael Vogt
Approved revision: 337
Merged at revision: 337
Proposed branch: lp:~hamo/snappy/check_local_dir
Merge into: lp:~snappy-dev/snappy/snappy-moved-to-github
Diff against target: 12 lines (+1/-1)
1 file modified
snappy/install.go (+1/-1)
To merge this branch: bzr merge lp:~hamo/snappy/check_local_dir
Reviewer Review Type Date Requested Status
Michael Vogt (community) Approve
Review via email: mp+256012@code.launchpad.net

Commit message

When consuming local snappy parts, check whether the name is a regular file.

To post a comment you must log in.
lp:~hamo/snappy/check_local_dir updated
337. By Yang Bai

When consuming local snappy parts, check whether the name is a regular file

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your contribution! Looks good.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'snappy/install.go'
--- snappy/install.go 2015-04-07 13:50:22 +0000
+++ snappy/install.go 2015-04-13 19:05:12 +0000
@@ -75,7 +75,7 @@
7575
76func doInstall(name string, flags InstallFlags) (string, error) {76func doInstall(name string, flags InstallFlags) (string, error) {
77 // consume local parts77 // consume local parts
78 if _, err := os.Stat(name); err == nil {78 if fi, err := os.Stat(name); err == nil && fi.Mode().IsRegular() {
79 // we allow unauthenticated package when in developer79 // we allow unauthenticated package when in developer
80 // mode80 // mode
81 if inDeveloperMode() {81 if inDeveloperMode() {

Subscribers

People subscribed via source and target branches