summaryrefslogtreecommitdiff
path: root/unofficial/modules/yaourt/libs/lib-yaourt-sh
blob: 79730dca286de577fa7ba14867174e5595a23704 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

# See http://wiki.archlinux.org/index.php/Yaourt

_runtime_yaourt ()
{
	if ! target_list_pacman_repos | grep -q archlinuxfr
	then
		target_add_pacman_repo archlinuxfr 'Server = http://repo.archlinux.fr/i686'
	fi
	PACMAN_TARGET -Sy yaourt
	YAOURT=`sed 's/pacman/yaourt/' <<< $PACMAN`
	YAOURT_TARGET=`sed 's/pacman/yaourt/' <<< $PACMAN_TARGET`
}


_yaourt_replace_pacman ()
{
	_runtime_yaourt
	PACMAN=$YAOURT
	PACMAN_TARGET=$YAOURT_TARGET
}