diff options
author | Julian Andres Klode <jak@debian.org> | 2017-03-13 21:44:53 +0100 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2017-03-13 21:44:53 +0100 |
commit | e6dddfec2552c798a820d31691d59928929c0905 (patch) | |
tree | 3d4ff59bfef17e9a224380e13f52e7096c6f151f | |
parent | a9b56a0101628ac04aad0d4e50363b9c18566832 (diff) | |
download | apt-e6dddfec2552c798a820d31691d59928929c0905.tar.gz |
Fix mistake in CHANGEPATH comment example
It says SRCNAME_SRCVER, but the example just gives
the SRCVER part.
Reported-By: Nishanth Aravamudan (nacc) in #ubuntu-devel
-rw-r--r-- | apt-pkg/acquire-item.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index 83f725662..3c85f8adf 100644 --- a/apt-pkg/acquire-item.cc +++ b/apt-pkg/acquire-item.cc @@ -3631,7 +3631,7 @@ std::string pkgAcqChangelog::URI(std::string const &Template, if (Template.find("@CHANGEPATH@") == std::string::npos) return ""; - // the path is: COMPONENT/SRC/SRCNAME/SRCNAME_SRCVER, e.g. main/a/apt/1.1 or contrib/liba/libapt/2.0 + // the path is: COMPONENT/SRC/SRCNAME/SRCNAME_SRCVER, e.g. main/a/apt/apt_1.1 or contrib/liba/libapt/libapt_2.0 std::string Src = SrcName; std::string path = APT::String::Startswith(SrcName, "lib") ? Src.substr(0, 4) : Src.substr(0,1); path.append("/").append(Src).append("/"); |