summaryrefslogtreecommitdiff
path: root/aur
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-12-22 23:25:29 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-12-22 23:25:29 -0300
commit89f2322d7c3fc28690d06bda06b45ba7742be1c0 (patch)
treed0cd28e50ac799d9b2c2213a7654ee6f31ab98d0 /aur
parent074e2054d5a1d8b9978d48dc019b0e714efd42aa (diff)
Skip existing PKGBUILDs (doesn't compare versions)
Diffstat (limited to 'aur')
-rwxr-xr-xaur6
1 files changed, 5 insertions, 1 deletions
diff --git a/aur b/aur
index ca7d587..1b17358 100755
--- a/aur
+++ b/aur
@@ -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