I resubmit the same patch as in my previous message, but in a form suitable for direct inclusion to the package's debian/patches directory.
I have confirmed that the patch is applied cleanly by making a test build with both this and the patches from the #637743 bug report. regards George Zarkadas
--- a/lib/backup-methods.sh
+++ b/lib/backup-methods.sh
@@ -238,7 +238,9 @@
target="$2"
debug "__get_flags_relative_blacklist ($switch, $target)"
- target=${target%/}
+ if [ "$target" != "/" ]; then
+ target=${target%/}
+ fi
blacklist=""
for pattern in $BM_TARBALL_BLACKLIST
do
@@ -252,7 +254,13 @@
# making a relative path...
pattern="${pattern#$target}"
length=$(expr length $pattern)
- pattern=$(expr substr $pattern 2 $length)
+ # for $target="/", no spare / is left at the beggining
+ # after the # substitution; thus take substr from pos 1
+ if [ "$target" != "/" ]; then
+ pattern=$(expr substr $pattern 2 $length)
+ else
+ pattern=$(expr substr $pattern 1 $length)
+ fi
# ...and blacklisting it
blacklist="$blacklist ${switch}${pattern}"
signature.asc
Description: This is a digitally signed message part

