diff options
author | Julian Andres Klode <jak@debian.org> | 2020-12-18 21:00:29 +0000 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2020-12-18 21:00:29 +0000 |
commit | 06ec0067057e0578f3bc515f6a97d6a9d70824f6 (patch) | |
tree | e0cb170d0a4f8caff89c2402bf24e6951b716360 /apt-pkg/update.cc | |
parent | ece7f5bb0afee0994a4fb4380e756ce725fe67a9 (diff) | |
parent | a5859bafdaa6bcf12934d0fb1715a5940965e13a (diff) |
Merge branch 'pu/uriencode' into 'master'
Use encoded URIs in the acquire system
See merge request apt-team/apt!139
Diffstat (limited to 'apt-pkg/update.cc')
-rw-r--r-- | apt-pkg/update.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-pkg/update.cc b/apt-pkg/update.cc index 4c64eeb5d..1b25bafd6 100644 --- a/apt-pkg/update.cc +++ b/apt-pkg/update.cc @@ -87,6 +87,8 @@ bool AcquireUpdate(pkgAcquire &Fetcher, int const PulseInterval, ::URI uri((*I)->DescURI()); uri.User.clear(); uri.Password.clear(); + if ((*I)->Local) + uri.Path = DeQuoteString(uri.Path); std::string const descUri = std::string(uri); // Show an error for non-transient failures, otherwise only warn if ((*I)->Status == pkgAcquire::Item::StatTransientNetworkError) |