adb: fix output of sync -l

sync with list-only was using SyncConnection::Error to print its output
persistently, which would prepend "adb: error: " to messages.

Change-Id: I90df5fc1123b8c613c811cf66c37aef05663b1e4
This commit is contained in:
Josh Gao 2016-08-04 14:55:23 -07:00
parent ed3596aadf
commit baa215ea59

View file

@ -699,7 +699,7 @@ static bool copy_local_dir_remote(SyncConnection& sc, std::string lpath,
for (const copyinfo& ci : file_list) {
if (!ci.skip) {
if (list_only) {
sc.Error("would push: %s -> %s", ci.lpath.c_str(), ci.rpath.c_str());
sc.Println("would push: %s -> %s", ci.lpath.c_str(), ci.rpath.c_str());
} else {
if (!sync_send(sc, ci.lpath.c_str(), ci.rpath.c_str(), ci.time, ci.mode)) {
return false;