blob: 56e03df36eb5b85132b4c226707adbf5c5f169f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/sh
# See http://wiki.archlinux.org/index.php/Yaourt
_runtime_yaourt ()
{
if ! list_pacman_repos runtime | grep -q archlinuxfr
then
add_pacman_repo runtime archlinuxfr "Server = http://repo.archlinux.fr/$var_ARCH"
fi
$PACMAN -Sy yaourt || die_error "_runtime_yaourt Cannot install yaourt" #TODO: library-ize package installation
YAOURT=${PACMAN//pacman/yaourt}
YAOURT_TARGET=${PACMAN_TARGET//pacman/yaourt}
}
_yaourt_replace_pacman ()
{
show_warning "Security warning!" "Keep in mind that packages on AUR are untrusted! Install them on your own risk"
_runtime_yaourt
PACMAN=$YAOURT
PACMAN_TARGET=$YAOURT_TARGET
}
|