diff options
author | Ishan Jayawardena <udeshike@gmail.com> | 2011-07-08 21:09:25 +0530 |
---|---|---|
committer | Ishan Jayawardena <udeshike@gmail.com> | 2011-07-08 21:09:25 +0530 |
commit | ad9364e4f0e8a65c2ae16fab9508485e5d915bd2 (patch) | |
tree | 3def3ae36d17d140b16614cc50f24f1b357b1d30 /apt-pkg/acquire-item.cc | |
parent | 1792371c2700e42a18c934a91442340c4fce7924 (diff) |
added support for a 'debdelta' entry in the sources.list file and modified existing implementation of replacement rule.
Diffstat (limited to 'apt-pkg/acquire-item.cc')
-rw-r--r-- | apt-pkg/acquire-item.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index 9b7eeaa35..4160767b7 100644 --- a/apt-pkg/acquire-item.cc +++ b/apt-pkg/acquire-item.cc @@ -2291,11 +2291,10 @@ void pkgAcqDebdelta::Finished() bool pkgAcqDebdelta::ReplaceURI() { - if (_config->Find("Aquire::Debdelta::Replace-Rule::Replace-URI", "empty") == "empty") - return _error->Error("[Debdelta] Could not find a Replace-URI"); - const Configuration::Item* item =_config->Tree("Aquire::Debdelta::Replace-Rule::URI-Space"); + const Configuration::Item* item =_config->Tree("Aquire::Debdelta::Replace-Rule"); for (item = item->Child; item != 0; item = item->Next) { size_t pos = 0; + // see if the Des.URI is available in the URI-Space if ((pos = Desc.URI.find(item->Tag, pos)) != std::string::npos) { Desc.URI.replace(pos, item->Tag.length(), item->Value); |