[arch-releng] AIF [PATCH 1/2] Fix URL parsing for core repo

Gerhard Brauer gerbra at archlinux.de
Sun Mar 1 15:37:09 EST 2009


Patch, this time inline:
---------------

>From 130488d0fbd867cafe327d6d21c8554dcc8a81d1 Mon Sep 17 00:00:00 2001
From: Gerhard Brauer <gerbra at archlinux.de>
Date: Sun, 1 Mar 2009 20:31:36 +0100
Subject: [PATCH 1/2] Fix URL parsing for core repo

Old code places backslashes into the URL, so the core.db.tar.gz could
not fetched from the mirror when using ftp install.

Signed-off-by: Gerhard Brauer <gerbra at archlinux.de>
---
 src/core/libs/lib-pacman.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/core/libs/lib-pacman.sh b/src/core/libs/lib-pacman.sh
index 4497074..35016ad 100644
--- a/src/core/libs/lib-pacman.sh
+++ b/src/core/libs/lib-pacman.sh
@@ -78,7 +78,7 @@ do
 	then
 		add_pacman_repo target ${repo} "Include = $var_MIRRORLIST"
 	else
-		add_pacman_repo target ${repo} "Server = ${serverurl/\/\$repo
\//\/$repo\/}" # replace literal '/$repo/' in the serverurl string by
"/$repo/" where $repo is our variable.
+		add_pacman_repo target ${repo} "Server = ${serverurl/\$repo/$repo}" #
replace literal '/$repo/' in the serverurl string by "/$repo/" where
$repo is our variable.
 	fi
 done
 	# Set up the necessary directories for pacman use
-- 
1.6.1.3





More information about the arch-releng mailing list