]> git.saurik.com Git - apt.git/blobdiff - test/integration/framework
tests: reenable basic auth test and add @ in username
[apt.git] / test / integration / framework
index 40b5bb98b11d96f2d4acbcdc200556ccc849bd02..897ae3bfe66f87b047e8eaf5d2cb9a4ba823b1ad 100644 (file)
@@ -1156,8 +1156,8 @@ rewritesourceslist() {
        local APTARCHIVE2="copy://$(readlink -f "${TMPWORKINGDIRECTORY}/aptarchive" | sed 's# #%20#g')"
        for LIST in $(find rootdir/etc/apt/sources.list.d/ -name 'apt-test-*.list'); do
                sed -i $LIST -e "s#$APTARCHIVE#${1}#" -e "s#$APTARCHIVE2#${1}#" \
-                       -e "s#http://localhost:${APTHTTPPORT}/#${1}#" \
-                       -e "s#https://localhost:${APTHTTPSPORT}/#${1}#"
+                       -e "s#http://[^@]*@\?localhost:${APTHTTPPORT}/\?#${1}#" \
+                       -e "s#https://[^@]*@\?localhost:${APTHTTPSPORT}/\?#${1}#"
        done
 }