oshazard / apacman

ArchLinux User Repository (AUR) helper and pacman wrapper
https://aur.archlinux.org/packages/apacman/
GNU General Public License v3.0
70 stars 11 forks source link

Don't try to download pkgbuilds if the package isn't in the AUR #62

Closed justin8 closed 8 years ago

justin8 commented 8 years ago

Fix for curl error seen in #60

It was trying to download packages from a URL with no sanity checks and no checks if the package exists in the AUR first.

oshazard commented 8 years ago

This pull request doesn't solve the problem

$ ./apacman62 -Su --devel --auronly apacman-utils
:: Synchronizing aur database...
notice: curl exited with code 22           25  351 [############-----------------------------------------------------------------------------------------------------------------------------------------------------------------------]  7%
notice: curl exited with code 22
manpage: HTTP page not retrieved. The requested url was not found or returned another error with the HTTP error code being 400 or above. This return code only appears if -f, --fail is used.
manpage: HTTP page not retrieved. The requested url was not found or returned another error with the HTTP error code being 400 or above. This return code only appears if -f, --fail is used.------------------------------------------]  7%
oshazard commented 8 years ago

Okay I figured it out.

The problem was basepath=$(echo ${pkgpath##*/} | awk -F . '{print $1}') changed to: basepath=$(echo ${pkgpath##*/} | sed 's/\.tar\.gz$//')

oshazard commented 8 years ago

Fixed in 565f8289c03f03591ec50368dbf94eaab130031f