summaryrefslogtreecommitdiff
path: root/download-repo.sh
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-05-22 18:06:45 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-05-22 18:06:45 -0300
commit3db6b4547b2e25ac2f250781e63754a7319164bb (patch)
tree594f0e0878f571678e4d097ed3babab97ddeaade /download-repo.sh
parentccd5e7185a586e2ee6303d94600d16ec36e1e5e6 (diff)
2011.05.22 build
Diffstat (limited to 'download-repo.sh')
-rwxr-xr-xdownload-repo.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/download-repo.sh b/download-repo.sh
index cd4fd88..fb09f01 100755
--- a/download-repo.sh
+++ b/download-repo.sh
@@ -39,12 +39,13 @@ fi
#Ensure we have core/pkgname format, so we don't get crap from other repos
PKGS=$(/usr/bin/pacman -Sl $REPO | cut -d' ' -f1,2 | tr ' ' '/')
+PKGS="$PKGS filesystem initscripts kernel26-libre licenses-libre pacman pacman-mirrorlist-libre your-freedom"
if [ -n "$PKGS" ]; then
baseurl=""
cachedir="/var/cache/pacman/pkg/"
for url in $(/usr/bin/pacman -Sdp $PKGS | grep '://'); do
- baseurl="$(dirname "$url")" #save for later
+ [[ -z $baseurl ]] && baseurl="$(dirname "$url")" #save for later
pkgname="$(basename "$url")"
cachedpkg="$cachedir/$pkgname"
if [ ! -e "$DEST/$pkgname" ]; then