owncloudcmd: Save the selective sync list on the first run
For issue #4690 In the first run, the journal might not exist, we should not cancel setting the selective sync list
Esse commit está contido em:
+1
-5
@@ -153,7 +153,7 @@ void help()
|
||||
std::cout << " Proxy is http://server:port" << std::endl;
|
||||
std::cout << " --trust Trust the SSL certification." << std::endl;
|
||||
std::cout << " --exclude [file] Exclude list file" << std::endl;
|
||||
std::cout << " --unsyncedfolders [file] File containing the list of unsynced folders (selective sync)" << std::endl;
|
||||
std::cout << " --unsyncedfolders [file] File containing the list of unsynced remote folders (selective sync)" << std::endl;
|
||||
std::cout << " --user, -u [name] Use [name] as the login name" << std::endl;
|
||||
std::cout << " --password, -p [pass] Use [pass] as password" << std::endl;
|
||||
std::cout << " -n Use netrc (5) for login" << std::endl;
|
||||
@@ -249,10 +249,6 @@ void parseOptions( const QStringList& app_args, CmdOptions *options )
|
||||
*/
|
||||
void selectiveSyncFixup(OCC::SyncJournalDb *journal, const QStringList &newList)
|
||||
{
|
||||
if (!journal->exists()) {
|
||||
return;
|
||||
}
|
||||
|
||||
SqlDatabase db;
|
||||
if (!db.openOrCreateReadWrite(journal->databaseFilePath())) {
|
||||
return;
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário