Package: websvn
Severity: important
The separation by comas of the target directories does not work as
expected.
Here comes a patch for the package configuration which should solve the
problem.
--- config.orig 2005-01-26 14:47:52.000000000 +0200
+++ config 2005-01-26 14:48:11.000000000 +0200
@@ -25,6 +25,7 @@
db_input "high" "websvn/webservers" || true
db_input "high" "websvn/parentpath" || true
db_input "high" "websvn/repositories" || true
+ db_input "high" "websvn/usenames" || true
# TODO warn users www-data user MUST have WRITE permission !
--- postinst.orig 2005-01-26 14:49:32.000000000 +0200
+++ postinst 2005-01-26 14:50:46.000000000 +0200
@@ -26,19 +26,27 @@
db_get "websvn/parentpath" || true
repositories="$RET"
if [ "x$repositories" != "x" ]; then
- echo $repositories | sed -e 's/,/\n/' | \
+ echo $repositories | sed -e 's/,/\n/g' | \
while read dirname; do
echo "\$config->parentPath(\"$dirname\");" >>
$tmpfile
done
fi
+ db_get "websvn/usenames" || true
+ usenames="$RET"
+
db_get "websvn/repositories" || true
i=1
repositories="$RET"
if [ "x$repositories" != "x" ]; then
- echo $repositories | sed -e 's/,/\n/' | \
+ echo $repositories | sed -e 's/,/\n/g' | \
while read dirname; do
- echo "\$config->addRepository(\"repos $i\",
\"$dirname\");" >> $tmpfile
+ if [ x"$usenames" = "xy" ] ;then
+ reponame=$(echo $dirname | awk
'BEGIN{FS="/"}{print $NF}')
+ else
+ reponame="repos $i"
+ fi
+ echo "\$config->addRepository(\"$reponame\",
\"$dirname\");" >> $tmpfile
i=$(($i + 1))
done
fi
--- templates.orig 2005-01-26 14:43:32.000000000 +0200
+++ templates 2005-01-26 14:47:42.000000000 +0200
@@ -8,6 +8,14 @@
If you want to configure it later, you should run 'dpkg-reconfigure
websvn'.
+Template: websvn/usenames
+Type: boolean
+Default: false
+_Description: Do you want to use the directory name for naming the repository?
+ WebSVN can use both the repository directory to name the repository on
+ the interface or use a defined string (repos #number). You can select
+ which one to use here.
+
Template: websvn/parentpath
Type: string
_Default: /var/lib/svn
-- System Information:
Debian Release: 3.1
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.9-10-amd64-k8
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]