diff options
author | David Kalnischkies <david@kalnischkies.de> | 2021-09-12 16:08:52 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2021-09-13 16:08:52 +0200 |
commit | 2b0369a5d1673d9e40f2af4db7677b040a26ee58 (patch) | |
tree | d1c588de1ad6534fc942dd117002e0dda1de15a1 /test/integration/test-apt-get-update-unauth-warning | |
parent | 883a12310a4130370965eab0a710a2c8fae6cc09 (diff) |
Read and work with canonical file-URIs from sources.lists
We allow file (and other file-based methods) URIs to either be given
as file:///path or as file:/path, but in various places of the acquire
system we perform string comparisons on URIs which do not handle this
expecting the canonical representation produced by our URI code.
That used to be hidden by us quoting and dequoting the URIs in the
system, but as we don't do this anymore we have to be a bit more careful
on input.
Ideally we would do less of these comparisons, but for now lets be
content with inserting a canonicalisation early on to prevent hangs in
the acquire system.
Diffstat (limited to 'test/integration/test-apt-get-update-unauth-warning')
-rwxr-xr-x | test/integration/test-apt-get-update-unauth-warning | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/integration/test-apt-get-update-unauth-warning b/test/integration/test-apt-get-update-unauth-warning index a0d7a59d9..42c4e5a9d 100755 --- a/test/integration/test-apt-get-update-unauth-warning +++ b/test/integration/test-apt-get-update-unauth-warning @@ -47,7 +47,7 @@ partial' ls rootdir/var/lib/apt/lists filesize() { local CREATEDBY="$1" shift - stat -c%s "$(aptget indextargets --no-release-info --format '$(URI)' "Created-By: $CREATEDBY" "$@" | cut -d'/' -f 3- ).gz" + stat -c%s "/$(aptget indextargets --no-release-info --format '$(URI)' "Created-By: $CREATEDBY" "$@" | cut -d'/' -f 2- ).gz" } # allow override #aptget update --allow-insecure-repositories -o Debug::pkgAcquire::worker=1 |