Merge "camget: actually check size of file on server"

This commit is contained in:
mpl 2014-11-10 18:18:03 +00:00 committed by Gerrit Code Review
commit d7e5128bbe
1 changed files with 2 additions and 2 deletions

View File

@ -269,11 +269,11 @@ func smartFetch(src blob.Fetcher, targ string, br blob.Ref) error {
name := filepath.Join(targ, b.FileName())
if fi, err := os.Stat(name); err == nil && fi.Size() == fi.Size() {
if fi, err := os.Stat(name); err == nil && fi.Size() == fr.Size() {
if *flagVerbose {
log.Printf("Skipping %s; already exists.", name)
return nil
}
return nil
}
if *flagVerbose {