Je viens de tenter customizepkg (sur liferea), mais yaourt m'a envoyé chier (no files found for liferea). Après (rapide) enquête, c'est la ligne là qui pose problème:
wget -q "${url/only_with_tag=*/only_with_tag=$branchtags}" -O "$YAOURTTMPDIR/page.tmp" || continue
Wget indique qu'il a bien téléchargé la page, mais celle-ci reste inchangée, ne me demandez pas pourquoi (oui, c'est un wget tout ce qu'il y a de plus standard, pas patché ni rien). Le patch qui suit a réglé le problème, mais je sais pas si c'est la bonne manière.
Code : Tout sélectionner
--- /usr/bin/yaourt 2008-03-15 20:16:23.000000000 +0100
+++ /tmp/yaourt 2008-04-23 11:57:12.000000000 +0200
@@ -387,7 +387,7 @@
[ "$MAJOR" != "getpkgbuild" ] && aurcomments $aurid $PKG
url=`wget --quiet "${AUR_URL3}${aurid}" -O - | grep "href='http://cvs.archlinux.org.*>CVS<" | sed -e "s/^.*href='//" -e "s/'>CVS<.*$//"`
else
- wget -q "${ABS_URL}&repo=${repository}&q=$PKG" -O "$YAOURTTMPDIR/page.tmp"
+ rm -f "$YAOURTTMPDIR/page.tmp" && wget -q "${ABS_URL}&repo=${repository}&q=$PKG" -O "$YAOURTTMPDIR/page.tmp"
manage_error $? || continue
if grep -q 'View CVS Entries' "$YAOURTTMPDIR/page.tmp"; then
url=`grep 'View CVS Entries' "$YAOURTTMPDIR/page.tmp" | awk -F "\"" '{print $2}'`
@@ -397,7 +397,7 @@
if [ ${#urls[@]} -gt 1 -a $TESTING -eq 1 ]; then
branchtags="TESTING"
fi
- wget -q "http://archlinux.org${urls[0]}" -O "$YAOURTTMPDIR/page.tmp"
+ rm -f "$YAOURTTMPDIR/page.tmp" && wget -q "http://archlinux.org${urls[0]}" -O "$YAOURTTMPDIR/page.tmp"
manage_error $? || continue
url=`grep 'View CVS Entries' "$YAOURTTMPDIR/page.tmp" | awk -F "\"" '{print $2}'`
fi
@@ -405,7 +405,7 @@
# Download Files on CVS package page
if [ -z "$url" ]; then echo "$PKG was not found on abs"; manage_error 1 || continue; fi
- wget -q "${url/only_with_tag=*/only_with_tag=$branchtags}" -O "$YAOURTTMPDIR/page.tmp" || continue
+ rm -f "$YAOURTTMPDIR/page.tmp" && wget -q "${url/only_with_tag=*/only_with_tag=$branchtags}" -O "$YAOURTTMPDIR/page.tmp" || continue
files=( `grep "href=\".*?rev=.*&" "$YAOURTTMPDIR/page.tmp" | sed -e "s/^.*href=\"//" -e "s/&only_with_tag.*//"` )
if [ ${#files[@]} -eq 0 ]; then echo "No file found for $PKG"; manage_error 1 || continue; fi
echo