summaryrefslogtreecommitdiffstats
path: root/web/html/pkgsubmit.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-04-05 15:41:29 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2014-04-05 15:55:31 +0200
commit676595f9bf4ecb3de96d02c89440a6fdaf7fc797 (patch)
tree9da03d5c8c8c9cea1a2b89a6f4b9673a4011e7bc /web/html/pkgsubmit.php
parentd16f7cf712f0f2f14343ff55a625b12603f542a4 (diff)
downloadaur-676595f9bf4ecb3de96d02c89440a6fdaf7fc797.tar.gz
aur-676595f9bf4ecb3de96d02c89440a6fdaf7fc797.tar.xz
Prefix package functions with pkg_/pkgbase_
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html/pkgsubmit.php')
-rw-r--r--web/html/pkgsubmit.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php
index 95566f75..7db81a5c 100644
--- a/web/html/pkgsubmit.php
+++ b/web/html/pkgsubmit.php
@@ -259,7 +259,7 @@ if ($uid):
}
/* Check if package name is blacklisted. */
- if (!$base_id && pkgname_is_blacklisted($pi['pkgname']) && !can_submit_blacklisted(account_from_sid($_COOKIE["AURSID"]))) {
+ if (!$base_id && pkg_name_is_blacklisted($pi['pkgname']) && !can_submit_blacklisted(account_from_sid($_COOKIE["AURSID"]))) {
$error = __( "%s is on the package blacklist, please check if it's available in the official repos.", $pi['pkgname']);
break;
}
@@ -329,30 +329,30 @@ if ($uid):
*/
$was_orphan = (pkgbase_maintainer_uid($base_id) === NULL);
- update_pkgbase($base_id, $pkgbase_info['pkgbase'], $uid);
+ pkgbase_update($base_id, $pkgbase_info['pkgbase'], $uid);
if ($category_id > 1) {
- update_pkgbase_category($base_id, $category_id);
+ pkgbase_update_category($base_id, $category_id);
}
pkgbase_delete_packages($base_id);
} else {
/* This is a brand new package. */
$was_orphan = true;
- $base_id = create_pkgbase($pkgbase_name, $category_id, $uid);
+ $base_id = pkgbase_create($pkgbase_name, $category_id, $uid);
}
foreach ($pkginfo as $pi) {
- $pkgid = create_pkg($base_id, $pi['pkgname'], $pi['license'], $pi['full-version'], $pi['pkgdesc'], $pi['url']);
+ $pkgid = pkg_create($base_id, $pi['pkgname'], $pi['license'], $pi['full-version'], $pi['pkgdesc'], $pi['url']);
foreach ($pi['depends'] as $dep) {
$deppkgname = preg_replace("/(<|=|>).*/", "", $dep);
$depcondition = str_replace($deppkgname, "", $dep);
- add_pkg_dep($pkgid, $deppkgname, $depcondition);
+ pkg_add_dep($pkgid, $deppkgname, $depcondition);
}
foreach ($pi['source'] as $src) {
- add_pkg_src($pkgid, $src);
+ pkg_add_src($pkgid, $src);
}
}
@@ -362,7 +362,7 @@ if ($uid):
* notification list.
*/
if ($was_orphan) {
- pkg_notify(account_from_sid($_COOKIE["AURSID"]), array($base_id), true);
+ pkgbase_notify(account_from_sid($_COOKIE["AURSID"]), array($base_id), true);
}
end_atomic_commit();
@@ -387,7 +387,7 @@ html_header("Submit");
# give the visitor the default upload form
if (ini_get("file_uploads")):
- $pkg_categories = pkg_categories();
+ $pkgbase_categories = pkgbase_categories();
?>
<?php if ($error): ?>
@@ -406,7 +406,7 @@ html_header("Submit");
<select id="id_category" name="category">
<option value="1"><?= __("Select Category"); ?></option>
<?php
- foreach ($pkg_categories as $num => $cat):
+ foreach ($pkgbase_categories as $num => $cat):
print '<option value="' . $num . '"';
if (isset($_POST['category']) && $_POST['category'] == $cat):
print ' selected="selected"';