From e6dddfec2552c798a820d31691d59928929c0905 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Mon, 13 Mar 2017 21:44:53 +0100 Subject: 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 --- apt-pkg/acquire-item.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("/"); -- cgit v1.2.3