diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2015-01-09 10:53:44 +0100 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2015-01-09 13:14:02 +0100 |
commit | 3c171d353f930874593cfa94434b7b5d8e5f9aa8 (patch) | |
tree | 261184b25da4c151567fece536c0d3e43b05b5b4 /scripts/aurblup/aurblup-wrapper | |
parent | 7dd78de3fdd8ddebd0037459757ffe1bdaedaf07 (diff) | |
download | aurweb-3c171d353f930874593cfa94434b7b5d8e5f9aa8.tar.xz |
Rewrite aurblup in Python
The AUR backend already uses several Python scripts, rewrite the aurblup
helper as well. This has several advantages:
* We can easily use the main configuration file without using any shell
script wrappers.
* aurblup does not need to be recompiled on libalpm soname bumps.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'scripts/aurblup/aurblup-wrapper')
-rwxr-xr-x | scripts/aurblup/aurblup-wrapper | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/scripts/aurblup/aurblup-wrapper b/scripts/aurblup/aurblup-wrapper deleted file mode 100755 index c7b20af..0000000 --- a/scripts/aurblup/aurblup-wrapper +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/php -<?php -$dir = $argv[1]; - -if (empty($dir)) { - echo "Please specify AUR directory.\n"; - exit; -} - -set_include_path(get_include_path() . PATH_SEPARATOR . "$dir/lib"); -include("confparser.inc.php"); - -$user = config_get('database', 'user'); -$password = config_get('database', 'password'); -$name = config_get('database', 'name'); - -exec($dir . "/../scripts/aurblup/aurblup " . - "-S /var/run/mysqld/mysqld.sock " . - "-u " . escapeshellarg($user) . " " . - "-p " . escapeshellarg($password) . " " . - "-D " . escapeshellarg($name)); |