]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-ubuntu-bug-346386-apt-get-update-paywall
Use _apt as our unprivileged user name
[apt.git] / test / integration / test-ubuntu-bug-346386-apt-get-update-paywall
index 8e50843f329cbeca6447c06c18a0b2176acddda8..f655ae2d8dba74972c62113a43632322f340758d 100755 (executable)
@@ -16,13 +16,12 @@ setupaptarchive
 changetowebserver -o 'aptwebserver::overwrite::.*::filename=/knights'
 
 msgtest 'Acquire test file from the webserver to check' 'overwrite'
-echo '601 Configuration
-Config-Item: Acquire::http::DependOnSTDIN=0
+if downloadfile http://localhost:8080/holygrail ./knights-talking >/dev/null; then
+    msgpass
+else
+    msgfail
+fi
 
-600 Acquire URI
-URI: http://localhost:8080/holygrail
-Filename: knights-talking
-' | runapt ${METHODSDIR}/http >/dev/null 2>&1 && msgpass || msgfail
 testfileequal knights-talking 'ni ni ni'
 
 ensure_n_canary_strings_in_dir() {