Daniel Martí
46a8c9be44
cmd/fdroidcl: add version subcommand
...
And bump to 0.3.1.
9 years ago
Daniel Martí
827c537d5c
adb: actually use cmd parameter
...
Found by github.com/mvdan/unparam.
9 years ago
Daniel Martí
221997cd96
CI: test on Go 1.8.x
9 years ago
Daniel Martí
bbf402016e
cmd/fdroidcl: don't use log for error messages
...
Also, don't print stuff if we're using the default config.
9 years ago
Daniel Martí
39ad590d40
cmd/fdroidcl: remove commented out code
9 years ago
Daniel Martí
3910fcc39c
CI: use the latest patch version
9 years ago
Daniel Martí
1172c57264
cmd/fdroidcl: make all helper funcs return errors
...
Stop using log.Fatal* everywhere.
9 years ago
Daniel Martí
2d34bd675d
cmd/fdroidcl: report created file Close error
9 years ago
relan
b191eec348
Check that app is installed before uninstalling it
...
When trying to uninstall an app that is not installed adb prints just
"Failure". This causes output parsing to fail and results in "panic:
runtime error: index out of range" in adb.getFailureCode().
Check whether an app is installed first and print an appropriate message
if it's not.
9 years ago
relan
79e663e939
Fix parsing of adb uninstall error with a prefix
...
Adb can print error in the following format:
Failed to install example.apk: Failure [INSTALL_...: Explanation.]
So we should not expect "Failure" at the beginning of output.
9 years ago
relan
a7ec438ee5
Check stderr and stdout of adb install/uninstall
...
Adb 1.0.36 can print "Success" or "Failure" into either stderr or stdout.
Check combined output of both.
9 years ago
Daniel Martí
1a3682ec48
index: fix test after Apk.repo refactor
10 years ago
Daniel Martí
d37f81b5fb
Export Apk.RepoURL to make it show up in the cache
...
Also useful to have it exported.
Bump the cache version since current caches don't have the repo url at
all.
Fixes #19 (again).
10 years ago
Daniel Martí
f48dc32386
fdroidcl: actually use the cache dir for the cache
10 years ago
Daniel Martí
e68eb4bc7c
fdroidcl: fix cache format crash with repo refs
...
The new cache format didn't encode the repos properly, which lead to
crashes. Since we're modifying the cache format, introduce a version and
discard all previous caches (defaulting to version 0).
Fixes #19 .
10 years ago
Daniel Martí
4d0eeea959
Remove rogue cpu.out profile
10 years ago
Daniel Martí
4a3c92d036
Merge pull request #17 from lolilolicon/zsh_completion
...
Add zsh completion for fdroidcl
10 years ago
lolilolicon
90b5837477
Add zsh completion for fdroidcl
...
Not implemented:
* Complete :VersionCode after AppID.
* For `install`, `uninstall` & `upgrade`, check devices.
* For `uninstall` / `upgrade`, pass `-i` / `-u` to `search`.
10 years ago
Daniel Martí
286b62f1ab
fdroidcl: delay looking up a device
...
This way, we can error e.g. on a bad category without unnecessarily
waiting for a device.
Also gofmt.
10 years ago
Daniel Martí
939e24137b
fdroidcl: fix another bad category error
...
Fixes #14 again.
10 years ago
lolilolicon
0bdf85ca96
search: filter results by last updated date ( #16 )
...
Select apps updated today (UTC):
fdroidcl search -d 1
Select apps NOT updated since a year ago:
fdroidcl search -d -365
The default value `-d 0` disables this filter.
Fixes #13
10 years ago
Daniel Martí
1737f562cc
fdroidcl: remove incorrect "no such category" error
...
Fixes #14 .
10 years ago
Daniel Martí
02aa950697
fdroidcl: add `list categories`
...
Useful to know what can go in `search -c`, either for humans or for
completion scripts.
Fixes #12 .
10 years ago
Daniel Martí
153203f504
fdroidcl: return instead of using os.Exit(0)
10 years ago
Daniel Martí
1635c158ec
fdroidcl: clear cache if any repo is updated
10 years ago
Daniel Martí
2178b9eb5b
Fix broken index test
10 years ago
Daniel Martí
70b68e1f41
fdroidcl: cache all metadata to disk
...
Reduces `fdroidcl` startup time if it needs the metadata (e.g. `search`)
from 300ms to 30ms on my machine.
Updates #12 .
10 years ago
Daniel Martí
34a8ab8a73
Remove *App from Apk type
...
This circular data flow was preventing serialization, useful for caching
into disk.
10 years ago
Daniel Martí
d01a29e20f
cmd/fdroidcl: small cleanup
10 years ago
Daniel Martí
6c2086eb7c
search: don't filter if there are no search terms
...
Updates #12 .
10 years ago
Daniel Martí
e2c37473b5
Be consistent about Apk receiver names
10 years ago
Daniel Martí
dfde86df7d
fieldtypes: inline redundant FromString funcs
10 years ago
Daniel Martí
e010e6b08a
Merge pull request #15 from lolilolicon/show
...
show: display permissions too
10 years ago
lolilolicon
cf56bde49a
show: s/Name/Version/
10 years ago
lolilolicon
4924323aff
show: display permissions too
...
Fixes #11
10 years ago
Daniel Martí
50a47d3744
adb: make ineffassign happy
...
We are throwing away the error, so make that obvious.
10 years ago
Daniel Martí
9ed01753a6
index: cleanup
10 years ago
Daniel Martí
860fcb9408
CI: bump go version
10 years ago
Daniel Martí
7d3820093e
Merge pull request #10 from jspricke/specify_version
...
Add option to specify the version code of an app
10 years ago
Jochen Sprickerhof
ef0dcc43b9
Add option to specify the version code of an app
...
Fixes #6
10 years ago
Daniel Martí
9a02ad4a35
README: add -u to go get
10 years ago
Daniel Martí
a25fb82ba7
Point at old adb import again
10 years ago
Daniel Martí
bb403cd4eb
Merge github.com/mvdan/adb back into fdroidcl
...
Splitting adb into a separate repo wasn't a good idea, as it's not very
useful in general and it's tightly coupled with fdroidcl.
10 years ago
Daniel Martí
2f5d34f72e
Make AdbProps() more robust via a regexp
...
The old code is more error-prone (what if there are multiple ": "? what
if the trimming doesn't work as expected?) and also contains more logic
than necessary.
10 years ago
Daniel Martí
4a6306831a
device: code simplification and cleanup
10 years ago
Daniel Martí
76362d7114
index: simplify IsCompatibleABI
10 years ago
Daniel Martí
1d4f145071
download: Use one device if connected
...
Otherwise, treat all apks as compatible. Remove all the VName matching
code as discussed on github, to stay close to what the Android client
does. We should not be using version names for anything relevant anyway.
10 years ago
Daniel Martí
7536dd744f
devices: add maybeOneDevice()
10 years ago
Daniel Martí
82bc981665
update: add missing error check
10 years ago
Daniel Martí
f274bbba69
Merge pull request #8 from relan/abi-sdk-filter
...
Implement ABI and API level filters
10 years ago