summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2016-05-03 23:22:53 +0200
committerJulian Andres Klode <jak@debian.org>2016-05-10 20:53:16 +0200
commit910accc32542b5e99bdf146e55afdc0c48d17a6e (patch)
treee5f853ad97da82bee5bf44fedd77dfcb08afcedd /test
parentf5b1b479cfcebcac2f4ac1b9266c1d871d3cd988 (diff)
allow redirection for items without a space in the desc again
Broken in a4b8112b19763cbd2c12b81d55bc7d43a591d610. If an item has a description which includes no space and is redirected to another mirror the code which wants to rewrite the description expects a space in there, but can't find it and the unguarded substr command on the string will fail with an exception thrown… Guarding it properly and everything is fine. (cherry picked from commit 84ac6edfabe1c92d67e8d441e04216ad33c89165)
Diffstat (limited to 'test')
-rwxr-xr-xtest/integration/test-handle-redirect-as-used-mirror-change3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/integration/test-handle-redirect-as-used-mirror-change b/test/integration/test-handle-redirect-as-used-mirror-change
index 3a8b1fecd..7978d7524 100755
--- a/test/integration/test-handle-redirect-as-used-mirror-change
+++ b/test/integration/test-handle-redirect-as-used-mirror-change
@@ -22,3 +22,6 @@ Reading package lists..." aptget update
testsuccessequal "Hit:1 http://0.0.0.0:${APTHTTPPORT} unstable InRelease
Reading package lists..." aptget update
+
+testsuccess apthelper download-file "http://localhost:${APTHTTPPORT}/redirectme/dists/unstable/InRelease" inrelease
+testsuccess test -s inrelease