diff options
Diffstat (limited to 'download-repo.sh')
-rwxr-xr-x | download-repo.sh | 3 |
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 |