diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:56:42 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:56:42 +0000 |
commit | 0e72dd523557b84a3b37988d23d99eae1d79a657 (patch) | |
tree | 0cdb92365539d4f68759e0473439ab2ae9d9d8b7 /apt-pkg/deb/debindexfile.cc | |
parent | 66cadb075ecc27f0a116ef44221c1f15fafda7e7 (diff) |
Double slash bug
Author: jgg
Date: 2001-02-23 06:41:55 GMT
Double slash bug
Diffstat (limited to 'apt-pkg/deb/debindexfile.cc')
-rw-r--r-- | apt-pkg/deb/debindexfile.cc | 12 |
1 files changed, 2 insertions, 10 deletions
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); } |