diff options
author | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2011-12-22 23:25:29 -0300 |
---|---|---|
committer | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2011-12-22 23:25:29 -0300 |
commit | 89f2322d7c3fc28690d06bda06b45ba7742be1c0 (patch) | |
tree | d0cd28e50ac799d9b2c2213a7654ee6f31ab98d0 | |
parent | 074e2054d5a1d8b9978d48dc019b0e714efd42aa (diff) |
Skip existing PKGBUILDs (doesn't compare versions)
-rwxr-xr-x | aur | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -39,9 +39,13 @@ missing_deps=() for _pkg in ${@}; do # Remove the version -# TODO check downloaded PKGBUILD version _pkg="${_pkg%%[<>=]*}" + if [ -f "${_pkg}/PKGBUILD" ]; then + warning "${_pkg} already existed. skipping..." + continue + fi + msg "Downloading $_pkg..." wget -O - -q http://aur.archlinux.org/packages/$_pkg/$_pkg.tar.gz | \ tar xzf - >/dev/null 2>&1 |