[yaourt] dépôt community (en cours)
Publié : ven. 28 août 2009, 20:50
Il semblerait que depuis la mise à jour de yaourt, il n'y aie plus moyen de faire un yaourt -G sur les paquets de community.
Tondu
Tondu
Forum d'entraide ! Posez vos questions ici
https://forums.archlinux.fr/
Code : Tout sélectionner
--- abs.sh 2009-09-03 20:14:47.515749892 +0200
+++ absnew.sh 2009-09-03 20:15:02.069091507 +0200
@@ -47,22 +47,16 @@
# Manage specific Community and Testing packages
if [ "$repository" = "community" ]; then
- # Grab link to download pkgbuild from AUR Community
- [ "$MAJOR" != "getpkgbuild" ] && msg $(eval_gettext 'Searching Community AUR page for $PKG')
- aurid=`findaurid "$PKG"`
- if [ -z "$aurid" ]; then
- echo $(eval_gettext '$pkgname was not found on AUR')
- manage_error 1 || continue
- fi
- [ "$MAJOR" != "getpkgbuild" ] && aurcomments $aurid $PKG
- # Crapy Hack waiting for AUR to be up to date with new repos.archlinux.org
- category=`wget -q "http://aur.archlinux.org/packages.php?ID=$aurid" -O - | grep 'community ::' | sed 's|<[^<]*>||g' | awk '{print $3}'`
- if [ -z "$category" ]; then
- echo $(eval_gettext 'Link to subversion repository was not found on AUR page')
- manage_error 1 || continue
+ # Grab link to download pkgbuild from new repos.archlinux.org
+ source /etc/makepkg.conf
+ [ -z "$CARCH" ] && CARCH="i686"
+ wget -q "${ABS_REPOS_URL}/$PKG/repos/?root=community" -O - > "$YAOURTTMPDIR/page.tmp"
+ if [ $? -ne 0 ] || [ ! -s "$YAOURTTMPDIR/page.tmp" ]; then
+ echo $(eval_gettext '$PKG was not found on abs repos.archlinux.org'); manage_error 1 || continue
fi
- # EndofHack
- url="$ABS_REPOS_URL/community/$category/$PKG/?root=community"
+ repos=( `grep "name=.*i686" "$YAOURTTMPDIR/page.tmp" | awk -F "\"" '{print $2}'` )
+ url="$ABS_REPOS_URL/$PKG/repos/${repos[0]}/?root=community"
+ urlcommu="$ABS_REPOS_URL/$PKG/repos/${repos[0]}/"
else
# Grab link to download pkgbuild from new repos.archlinux.org
source /etc/makepkg.conf
@@ -99,7 +93,7 @@
for file in ${files[@]}; do
echo -e " ${COL_BLUE}-> ${NO_COLOR}${COL_BOLD}$(eval_gettext 'Downloading ${file} in build dir')${NO_COLOR}"
if [ "$repository" = "community" ]; then
- eval $INENGLISH wget --tries=3 --waitretry=3 --no-check-certificate "$ABS_REPOS_URL/community/$category/$PKG/$file?root=community\&view=co" -O $file
+ eval $INENGLISH wget --tries=3 --waitretry=3 --no-check-certificate "${urlcommu}${file}?root=community\&view=co" -O $file
else
eval $INENGLISH wget --tries=3 --waitretry=3 --no-check-certificate "${url}${file}?view=co" -O $file
fi
xanataz a écrit :juste une question : l'option -G n'est pas documentée ? A quoi sert-elle ? Merci par avance
ce -G là ?yaourt -h a écrit : (-G, --getpkgbuild) <pkg> * Récupère le PKGBUILD ainsi que les sources pour le paquetage
OuiNydol a écrit :xanataz a écrit :juste une question : l'option -G n'est pas documentée ? A quoi sert-elle ? Merci par avancece -G là ?yaourt -h a écrit : (-G, --getpkgbuild) <pkg> * Récupère le PKGBUILD ainsi que les sources pour le paquetage