From 0e72dd523557b84a3b37988d23d99eae1d79a657 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:56:42 +0000 Subject: Double slash bug Author: jgg Date: 2001-02-23 06:41:55 GMT Double slash bug --- apt-pkg/deb/debindexfile.cc | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'apt-pkg/deb') diff --git a/apt-pkg/deb/debindexfile.cc b/apt-pkg/deb/debindexfile.cc index 67afc89e6..dcc916c1a 100644 --- a/apt-pkg/deb/debindexfile.cc +++ b/apt-pkg/deb/debindexfile.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: debindexfile.cc,v 1.2 2001/02/20 07:03:17 jgg Exp $ +// $Id: debindexfile.cc,v 1.3 2001/02/23 06:41:55 jgg Exp $ /* ###################################################################### Debian Specific sources.list types and the three sorts of Debian @@ -66,15 +66,7 @@ string debSourcesIndex::SourceInfo(pkgSrcRecords::Parser const &Record, /* */ pkgSrcRecords::Parser *debSourcesIndex::CreateSrcParser() const { - string SourcesURI; - if (Dist[Dist.size() - 1] == '/') - SourcesURI = URI + Dist; - else - SourcesURI = URI + "dists/" + Dist + '/' + Section + - "/source/"; - - SourcesURI += "Sources"; - SourcesURI = URItoFileName(SourcesURI); + string SourcesURI = URItoFileName(IndexURI("Sources")); return new debSrcRecordParser(_config->FindDir("Dir::State::lists") + SourcesURI,this); } -- cgit v1.2.3-70-g09d2