Хранилища Subversion ant

Редакция

Редакция 514 | Редакция 516 | К новейшей редакции | Весь файл | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS

Редакция 514 Редакция 515
Строка 343... Строка 343...
343
        $query = "INSERT INTO ".$this->prefix."distribution SET distname='".$sDName."', distua='".$sDUAgt."', disttype='".$sDType."', distlogo='".$sDLogo."'";
343
        $query = "INSERT INTO ".$this->prefix."distribution SET distname='".$sDName."', distua='".$sDUAgt."', disttype='".$sDType."', distlogo='".$sDLogo."'";
344
        $rq =& $this->db->query($query);
344
        $rq =& $this->db->query($query);
345
        if (PEAR::isError($this->db)) {
345
        if (PEAR::isError($this->db)) {
346
            $result["ERR"] = 1;
346
            $result["ERR"] = 1;
347
            $result["ERRINFO"] = $this->db->getMessage();
347
            $result["ERRINFO"] = $this->db->getMessage();
348
        } else {
348
        } else {            
349
            $rq->fetchInto($element);
-
 
350
            $result["ERR"] = 0;
349
            $result["ERR"] = 0;
351
        }
350
        }
352
351
353
        return $result;
352
        return $result;
354
    }
353
    }
Строка 377... Строка 376...
377
        $query = "UPDATE ".$this->prefix."distribution SET distname='".$sDName."', distua='".$sDUAgt."', disttype='".$sDType."', distlogo='".$sDLogo."' WHERE dist_id='".$sDID."'";
376
        $query = "UPDATE ".$this->prefix."distribution SET distname='".$sDName."', distua='".$sDUAgt."', disttype='".$sDType."', distlogo='".$sDLogo."' WHERE dist_id='".$sDID."'";
378
        $rq =& $this->db->query($query);
377
        $rq =& $this->db->query($query);
379
        if (PEAR::isError($this->db)) {
378
        if (PEAR::isError($this->db)) {
380
            $result["ERR"] = 1;
379
            $result["ERR"] = 1;
381
            $result["ERRINFO"] = $this->db->getMessage();
380
            $result["ERRINFO"] = $this->db->getMessage();
382
        } else {
381
        } else {            
383
            $rq->fetchInto($element);
-
 
384
            $result["ERR"] = 0;
382
            $result["ERR"] = 0;
385
        }
383
        }
386
384
387
        return $result;
385
        return $result;
388
    }
386
    }
Строка 447... Строка 445...
447
        $query = "INSERT INTO ".$this->prefix."version SET dist_id='".$sDistID."', vname='".$sDVName."', version='".$sDVersion."', vcodename='".$sDVCName."'";
445
        $query = "INSERT INTO ".$this->prefix."version SET dist_id='".$sDistID."', vname='".$sDVName."', version='".$sDVersion."', vcodename='".$sDVCName."'";
448
        $rq =& $this->db->query($query);
446
        $rq =& $this->db->query($query);
449
        if (PEAR::isError($this->db)) {
447
        if (PEAR::isError($this->db)) {
450
            $result["ERR"] = 1;
448
            $result["ERR"] = 1;
451
            $result["ERRINFO"] = $this->db->getMessage();
449
            $result["ERRINFO"] = $this->db->getMessage();
452
        } else {
450
        } else {            
453
            $rq->fetchInto($element);
-
 
454
            $result["ERR"] = 0;
451
            $result["ERR"] = 0;
455
        }
452
        }
456
453
457
        return $result;
454
        return $result;
458
    }
455
    }
Строка 479... Строка 476...
479
        $query = "UPDATE ".$this->prefix."version SET vname='".$sDVName."', version='".$sDVersion."', vcodename='".$sDVCName."' WHERE version_id='".$sVersID."'";
476
        $query = "UPDATE ".$this->prefix."version SET vname='".$sDVName."', version='".$sDVersion."', vcodename='".$sDVCName."' WHERE version_id='".$sVersID."'";
480
        $rq =& $this->db->query($query);
477
        $rq =& $this->db->query($query);
481
        if (PEAR::isError($this->db)) {
478
        if (PEAR::isError($this->db)) {
482
            $result["ERR"] = 1;
479
            $result["ERR"] = 1;
483
            $result["ERRINFO"] = $this->db->getMessage();
480
            $result["ERRINFO"] = $this->db->getMessage();
484
        } else {
481
        } else {            
485
            $rq->fetchInto($element);
-
 
486
            $result["ERR"] = 0;
482
            $result["ERR"] = 0;
487
        }
483
        }
488
484
489
        return $result;
485
        return $result;
490
    }
486
    }
Строка 506... Строка 502...
506
        $query = "DELETE FROM ".$this->prefix."version WHERE version_id='".$sVersID."'";
502
        $query = "DELETE FROM ".$this->prefix."version WHERE version_id='".$sVersID."'";
507
        $rq =& $this->db->query($query);
503
        $rq =& $this->db->query($query);
508
        if (PEAR::isError($this->db)) {
504
        if (PEAR::isError($this->db)) {
509
            $result["ERR"] = 1;
505
            $result["ERR"] = 1;
510
            $result["ERRINFO"] = $this->db->getMessage();
506
            $result["ERRINFO"] = $this->db->getMessage();
511
        } else {
507
        } else {            
512
            $rq->fetchInto($element);
-
 
513
            $result["ERR"] = 0;
508
            $result["ERR"] = 0;
514
        }
509
        }
515
510
516
        // Удаление репозиториев этой версии дистрибутива
511
        // Удаление репозиториев этой версии дистрибутива
517
        $query = "DELETE FROM ".$this->prefix."repository WHERE version='".$sVersID."'";
512
        $query = "DELETE FROM ".$this->prefix."repository WHERE version='".$sVersID."'";