Merge lp:~sergiusens/snappy/go1.5 into lp:~snappy-dev/snappy/snappy-moved-to-github

Proposed by Sergio Schvezov
Status: Rejected
Rejected by: Sergio Schvezov
Proposed branch: lp:~sergiusens/snappy/go1.5
Merge into: lp:~snappy-dev/snappy/snappy-moved-to-github
Diff against target: 31 lines (+9/-1)
2 files modified
clickdeb/deb.go (+8/-0)
helpers/helpers.go (+1/-1)
To merge this branch: bzr merge lp:~sergiusens/snappy/go1.5
Reviewer Review Type Date Requested Status
Snappy Developers Pending
Review via email: mp+266557@code.launchpad.net

Commit message

Workaround and/or fix go 1.5 issues

To post a comment you must log in.

Unmerged revisions

626. By Sergio Schvezov

New go vet issue (missing return for fmt.Errorf)

625. By Sergio Schvezov

hardlinks tar'ed up as regular files explicitly.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'clickdeb/deb.go'
--- clickdeb/deb.go 2015-05-28 14:48:08 +0000
+++ clickdeb/deb.go 2015-07-31 13:40:21 +0000
@@ -335,6 +335,14 @@
335 return err335 return err
336 }336 }
337337
338 // FIXME: our current implementation does not tar hard links correctly
339 // and just duplicates the contents, this is just a workaround for
340 // go 1.5
341 if hdr.Typeflag == tar.TypeLink {
342 hdr.Typeflag = tar.TypeReg
343 hdr.Size = info.Size()
344 }
345
338 // tar.FileInfoHeader does include the fact that its a346 // tar.FileInfoHeader does include the fact that its a
339 // char/block device, but does not set major/minor :/347 // char/block device, but does not set major/minor :/
340 if helpers.IsDevice(st.Mode()) {348 if helpers.IsDevice(st.Mode()) {
341349
=== modified file 'helpers/helpers.go'
--- helpers/helpers.go 2015-07-01 21:09:59 +0000
+++ helpers/helpers.go 2015-07-31 13:40:21 +0000
@@ -490,7 +490,7 @@
490 // of atime/mtime and permissions490 // of atime/mtime and permissions
491 output, err := exec.Command("cp", "-va", src, dst).CombinedOutput()491 output, err := exec.Command("cp", "-va", src, dst).CombinedOutput()
492 if err != nil {492 if err != nil {
493 fmt.Errorf("Failed to copy %s to %s (%s)", src, dst, output)493 return fmt.Errorf("Failed to copy %s to %s (%s)", src, dst, output)
494 }494 }
495 }495 }
496 return nil496 return nil

Subscribers

People subscribed via source and target branches