diff options
Diffstat (limited to 'unofficial/modules/yaourt')
-rw-r--r-- | unofficial/modules/yaourt/libs/lib-yaourt-sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/unofficial/modules/yaourt/libs/lib-yaourt-sh b/unofficial/modules/yaourt/libs/lib-yaourt-sh new file mode 100644 index 0000000..79730dc --- /dev/null +++ b/unofficial/modules/yaourt/libs/lib-yaourt-sh @@ -0,0 +1,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 +} + |