Use Git repositories to store packages

* Remove package submission page from the web interface.
* Replace PKGBUILD and tarball links with links to cgit.
* Remove the "URLPath" field from RPC replies.

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2014-06-06 10:34:28 +02:00
parent 943b6bc976
commit 74edb6fea9
12 changed files with 12 additions and 3664 deletions

View file

@ -183,36 +183,6 @@ function pkg_relations($pkgid) {
return $rels;
}
/**
* Get the ID of a dependency type given its name
*
* @param string $name The name of the dependency type
*
* @return int The ID of the dependency type
*/
function pkg_dependency_type_id_from_name($name) {
$dbh = DB::connect();
$q = "SELECT ID FROM DependencyTypes WHERE Name = ";
$q.= $dbh->quote($name);
$result = $dbh->query($q);
return $result->fetch(PDO::FETCH_COLUMN, 0);
}
/**
* Get the ID of a relation type given its name
*
* @param string $name The name of the relation type
*
* @return int The ID of the relation type
*/
function pkg_relation_type_id_from_name($name) {
$dbh = DB::connect();
$q = "SELECT ID FROM RelationTypes WHERE Name = ";
$q.= $dbh->quote($name);
$result = $dbh->query($q);
return $result->fetch(PDO::FETCH_COLUMN, 0);
}
/**
* Get the HTML code to display a package dependency link
*
@ -779,6 +749,7 @@ function sanitize_ids($ids) {
}
/**
<<<<<<< HEAD
* Add package information to the database for a specific package
*
* @param int $base_id ID of the package base