v++
This commit is contained in:
@@ -320,11 +320,7 @@ public class TestingServer extends RepositoryServer<TestsDatabase> {
|
||||
}
|
||||
void RefreshDVMTests() throws Exception {
|
||||
Account account = (Account) request.object;
|
||||
int sapfor_id = Integer.parseInt(request.arg);
|
||||
ServerSapfor sapfor = null;
|
||||
if (!db.serverSapfors.containsKey(sapfor_id))
|
||||
throw new RepositoryRefuseException("Версия SAPFOR с ключом " + sapfor_id + " не найдена.");
|
||||
sapfor = db.serverSapfors.get(sapfor_id);
|
||||
ServerSapfor serverSapfor = db.serverSapfors.getLastDoneVersion();
|
||||
DownloadRepository downloadRepository = new DownloadRepository();
|
||||
if (!downloadRepository.Do())
|
||||
throw new RepositoryRefuseException("Не удалось обновить репозиторий");
|
||||
@@ -368,7 +364,7 @@ public class TestingServer extends RepositoryServer<TestsDatabase> {
|
||||
//-теперь создать тесты.
|
||||
//--
|
||||
for (Pair<Group, Vector<File>> p : groups)
|
||||
db.RefreshGroup(account, sapfor, p);
|
||||
db.RefreshGroup(account, serverSapfor, p);
|
||||
}
|
||||
void GetFirstActiveSapforPackages() throws Exception {
|
||||
response.object = db.getFirstActiveSapforPackagesCopies();
|
||||
|
||||
Reference in New Issue
Block a user