diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2008-12-20 11:47:18 +0100 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2008-12-20 11:47:18 +0100 |
commit | ce3afefeb9728619a06989a67e7ffd5ed299ecf8 (patch) | |
tree | 5e35a50c37e506c72cc58b79c811e7aad30447d5 /unofficial/modules/yaourt | |
parent | 2f839ffec30eea2025cced9fb690ab612795c6ac (diff) |
softcode architecture + some small misc stuff in yaourt lib
Diffstat (limited to 'unofficial/modules/yaourt')
-rw-r--r-- | unofficial/modules/yaourt/libs/lib-yaourt-sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/unofficial/modules/yaourt/libs/lib-yaourt-sh b/unofficial/modules/yaourt/libs/lib-yaourt-sh index fd9c4d0..56e03df 100644 --- a/unofficial/modules/yaourt/libs/lib-yaourt-sh +++ b/unofficial/modules/yaourt/libs/lib-yaourt-sh @@ -6,16 +6,17 @@ _runtime_yaourt () { if ! list_pacman_repos runtime | grep -q archlinuxfr then - add_pacman_repo runtime archlinuxfr 'Server = http://repo.archlinux.fr/i686' + add_pacman_repo runtime archlinuxfr "Server = http://repo.archlinux.fr/$var_ARCH" fi - $PACMAN -Sy yaourt || die_error "_runtime_yaourt Cannot install yaourt" - YAOURT=`sed 's/pacman/yaourt/' <<< $PACMAN` - YAOURT_TARGET=`sed 's/pacman/yaourt/' <<< $PACMAN_TARGET` + $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 |