A more complete version of Aaron Boodman's
https://camlistore-review.googlesource.com/#/c/3066/
in removing Transports. As Aaron pointed out,
(https://groups.google.com/d/msg/camlistore/9OwQKH6z7rY/840oQrRgsGIJ) it
is illegal for oauth.Transport.Transport to ever be another instance of
oauth.Transport.
So this commit tries hard to use Context's HTTPClient
everywhere and make sure to have its Transport an *oauth.Transport, but
that's Transport is not an *oauth.Transport, but the underlying
Transport.
To eliminate "403: Token not found" errors, we set
oauth.Config.AccessType, oauth.Config.ApprovalPrompt to
"offline", "force".
This rewards us with a non-empty Token.RefreshToken,
and store the full Token in AcctAttrOAuthToken.
This enables us to import continuously without user intervention.
Change-Id: I4defb346abfcf3f6c17597fc2dc23a6e536eda37
The previous behavior (now build target oldpresubmit) was slightly different
than devcam test; it didn't copy files to a clean directory and test in
isolation. The buildbot uses devcam test, and for consistency 'make
presubmit' should too.
This runs devcam test with -short, mirroring -short from the previous
presubmit. The buildbot runs devcam without -short.
Change-Id: I71e308bd16104004a8cd790901e88edebedab2a9
Replace reindex.go deleted blob.Ref detection loop with a regexp.
Replace diskpacked.go's isDeletedRef with same regexp.
Add a test that verifies the returned blobs match expectations and verifies
multipack diskpacked works..
Add new extension '.blobs' to devcam test's list of suffixes to copy.
Tests fail without the changes to reindex.go.
Change-Id: I0743c1b1ea295324ae3a39e70e6a07e2d6aa70e9
Replace reindex.go deleted blob.Ref detection loop with a regexp.
Replace diskpacked.go's isDeletedRef with same regexp.
Add a test that verifies the returned blobs match expectations and verifies
multipack diskpacked works..
Tests fail without the changes to reindex.go.
Change-Id: I332c2c3c8c37ebf262ce95e1ec0628146ab5108e
Go 1.4 (Go tip currently) defines a new GOOS=android, and a GOOS.go file is ignored on
other operating systems. But these android.go aren't actually meant to be only run on
GOOS=android, since we just build Linux binaries on Android for now.
To avoid user confusion, force camtool googinit use to actually
specify if Google Cloud Storage or Google Drive auth setup is
desired.
Change-Id: I6541b4a589de2dda73b725fcaf7bcdadd3f60b65
Instead of spamming with "", "Items" and "feed account" permanodes
use the feed's title to set meaningful titles.
Simplified version.
Change-Id: I2f008a30b48a1376e45cdca8d2dfa8b23bf49f40
Learned that cancelled is appropriate for non-US English, but the function is
IsCanceled, so I went with consistency.
Change-Id: If63a8af75338780c2f8e81bf4404fc4b5f852d77
The new package pkg/images/fastjpeg uses djpeg(1) to quickly
down-sample images at load time as described here:
http://jpegclub.org/djpeg/
Add benchmark comparing std lib jpeg.Decode and fastjpeg.DecodeDownsample
with a factor of 1, 2, 4, and 8.
Benchmark resizes a 4000x4000 pixel JPEG to 128x128.
Refactor in pkg/images to make images.Decode a little more readable.
Change-Id: I571db1f3c3068f99da4a01ec84fd246ef098a18c
Instead, require specifying it when constructing a new context.
Prevents misuse and bugs / data races.
Change-Id: I775e998bf69b9e238ec726c469494c1a65f8f9de