aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Mike Kelly <pioto@pioto.org> 2007-03-04 05:46:34 +0000
committerAvatar Mike Kelly <pioto@pioto.org> 2007-03-04 05:46:34 +0000
commitca4cc9bc1667b31c5504c816527d21e936433fd5 (patch)
tree52b88a84ec5f18fe76d03647e6f0b55075e3d488
parentd10d5181b958f93d34b0ad06d29d411c5ac50153 (diff)
downloadpaludis-ca4cc9bc1667b31c5504c816527d21e936433fd5.tar.gz
paludis-ca4cc9bc1667b31c5504c816527d21e936433fd5.tar.xz
Update to work with the trac svn browser.
-rw-r--r--eselect/repo.eselect11
1 files changed, 7 insertions, 4 deletions
diff --git a/eselect/repo.eselect b/eselect/repo.eselect
index 834223f..682f29a 100644
--- a/eselect/repo.eselect
+++ b/eselect/repo.eselect
@@ -23,16 +23,18 @@ cat_file() {
svn cat "${filename}"
elif [[ ${filename} != */* ]]; then
templateroot="$(get_var template_root)"
- cat_file "${templateroot}/${filename}.templ"
+ templatesuffix="$(get_var template_suffix)"
+ cat_file "${templateroot}/${filename}.templ${template_suffix}"
else
die -q "Couldn't load ${filename}"
fi
}
get_var() {
- default_template_root="http://svn.pioto.org/viewvc/paludis/repo-templates"
+ default_template_root="http://paludis.pioto.org/trac/browser/repo-templates"
default_repo_root="${ROOT}/var/paludis/repositories"
default_config_root="${ROOT}/etc/paludis"
+ default_template_suffix="?format=raw"
if [[ -L /etc/make.profile ]]; then
default_profiles="$(canonicalise /etc/make.profile)"
fi
@@ -56,8 +58,9 @@ describe_list() {
do_list() {
templateroot=$(get_var template_root)
+ templatesuffix=$(get_var template_suffix)
- local -a list=( $(cat_file ${templateroot}/list) )
+ local -a list=( $(cat_file ${templateroot}/list${templatesuffix}) )
write_list_start "Available repository templates: (* == installed)"
local count=0
for i in "${list[@]}"; do
@@ -198,7 +201,7 @@ do_show()
if [[ -n $1 ]]; then
vars=$1
else
- vars=( template_root repo_root profiles distdir config_root )
+ vars=( template_root template_suffix repo_root profiles distdir config_root )
write_list_start "Current configuration variables:"
for i in ${vars[@]}; do
value=$(load_config ${REPO_CONFIG_FILE} $i)