Merge lp:~lifeless/ubuntu/lucid/apt/bug-22354 into lp:ubuntu/lucid/apt

Proposed by Robert Collins
Status: Merged
Merge reported by: Robert Collins
Merged at revision: not available
Proposed branch: lp:~lifeless/ubuntu/lucid/apt/bug-22354
Merge into: lp:ubuntu/lucid/apt
Diff against target: 117 lines (+31/-6)
5 files modified
AUTHORS (+4/-0)
apt-pkg/contrib/strutl.cc (+12/-0)
apt-pkg/contrib/strutl.h (+1/-0)
apt-pkg/deb/debindexfile.cc (+6/-6)
debian/changelog (+8/-0)
To merge this branch: bzr merge lp:~lifeless/ubuntu/lucid/apt/bug-22354
Reviewer Review Type Date Requested Status
Michael Vogt Approve
Ubuntu branches Pending
Review via email: mp+19569@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Robert Collins (lifeless) wrote :

I had some trouble diagnosing a multiple-PPA sources issue, so I fixed this bug.

Revision history for this message
Michael Vogt (mvo) wrote :

The merge is a bit unhappy:

$ bzr log lp:~lifeless/ubuntu/lucid/apt/bug-22354|head -n 15
------------------------------------------------------------
revno: 98
committer: Robert Collins <email address hidden>
branch nick: apt
timestamp: Thu 2010-02-18 13:39:30 +1100
message:
  Change the package index Info methods to allow apt-cache policy to be
  useful when using several different archives on the same host.
  (Closes: #329814, LP: #22354)
------------------------------------------------------------
revno: 97
tags: 0.7.25ubuntu4
author: Michael Vogt <email address hidden>
committer: Bazaar Package Importer <email address hidden>
branch nick: lucid
$ $ bzr merge -r 97..98 lp:~lifeless/ubuntu/lucid/apt/bug-22354
bzr: ERROR: Requested revision: u'98' does not exist in branch: RemoteBranch(bzr+ssh://bazaar.launchpad.net/~lifeless/ubuntu/lucid/apt/bug-22354/)

The diff itself is fine and I merged it into lp:~mvo/apt/mvo (from where it will travel to debian and ubuntu). Many thanks!

review: Approve
Revision history for this message
Robert Collins (lifeless) wrote :

Thank you!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'AUTHORS'
--- AUTHORS 2005-03-07 20:08:33 +0000
+++ AUTHORS 2010-02-18 02:54:14 +0000
@@ -12,6 +12,10 @@
12Michael Vogt <mvo@debian.org>12Michael Vogt <mvo@debian.org>
13- Development and bug fixes13- Development and bug fixes
1414
15Robert Collins <robert.collins@canonical.com>
16- Change the package index Info methods to allow apt-cache policy to be useful
17 when using several different archives on the same host.
18
15Past Contributors:19Past Contributors:
1620
17CVS:che Ben Gertzfield <che@debian.org>21CVS:che Ben Gertzfield <che@debian.org>
1822
=== modified file 'apt-pkg/contrib/strutl.cc'
--- apt-pkg/contrib/strutl.cc 2009-12-14 09:27:26 +0000
+++ apt-pkg/contrib/strutl.cc 2010-02-18 02:54:14 +0000
@@ -1306,3 +1306,15 @@
1306 return U;1306 return U;
1307}1307}
1308 /*}}}*/1308 /*}}}*/
1309// URI::NoUserPassword - Return the schema, site and path for the URI /*{{{*/
1310// ---------------------------------------------------------------------
1311/* */
1312string URI::NoUserPassword(const string &URI)
1313{
1314 ::URI U(URI);
1315 U.User.clear();
1316 U.Password.clear();
1317 U.Port = 0;
1318 return U;
1319}
1320 /*}}}*/
13091321
=== modified file 'apt-pkg/contrib/strutl.h'
--- apt-pkg/contrib/strutl.h 2009-12-22 09:44:08 +0000
+++ apt-pkg/contrib/strutl.h 2010-02-18 02:54:14 +0000
@@ -120,6 +120,7 @@
120 inline void operator =(const string &From) {CopyFrom(From);};120 inline void operator =(const string &From) {CopyFrom(From);};
121 inline bool empty() {return Access.empty();};121 inline bool empty() {return Access.empty();};
122 static string SiteOnly(const string &URI);122 static string SiteOnly(const string &URI);
123 static string NoUserPassword(const string &URI);
123 124
124 URI(string Path) {CopyFrom(Path);};125 URI(string Path) {CopyFrom(Path);};
125 URI() : Port(0) {};126 URI() : Port(0) {};
126127
=== modified file 'apt-pkg/deb/debindexfile.cc'
--- apt-pkg/deb/debindexfile.cc 2008-11-24 10:52:20 +0000
+++ apt-pkg/deb/debindexfile.cc 2010-02-18 02:54:14 +0000
@@ -35,12 +35,12 @@
35// SourcesIndex::SourceInfo - Short 1 liner describing a source /*{{{*/35// SourcesIndex::SourceInfo - Short 1 liner describing a source /*{{{*/
36// ---------------------------------------------------------------------36// ---------------------------------------------------------------------
37/* The result looks like:37/* The result looks like:
38 http://foo/ stable/main src 1.1.1 (dsc) */38 http://foo/debian/ stable/main src 1.1.1 (dsc) */
39string debSourcesIndex::SourceInfo(pkgSrcRecords::Parser const &Record,39string debSourcesIndex::SourceInfo(pkgSrcRecords::Parser const &Record,
40 pkgSrcRecords::File const &File) const40 pkgSrcRecords::File const &File) const
41{41{
42 string Res;42 string Res;
43 Res = ::URI::SiteOnly(URI) + ' ';43 Res = ::URI::NoUserPassword(URI) + ' ';
44 if (Dist[Dist.size() - 1] == '/')44 if (Dist[Dist.size() - 1] == '/')
45 {45 {
46 if (Dist != "/")46 if (Dist != "/")
@@ -88,7 +88,7 @@
88/* */88/* */
89string debSourcesIndex::Info(const char *Type) const89string debSourcesIndex::Info(const char *Type) const
90{90{
91 string Info = ::URI::SiteOnly(URI) + ' ';91 string Info = ::URI::NoUserPassword(URI) + ' ';
92 if (Dist[Dist.size() - 1] == '/')92 if (Dist[Dist.size() - 1] == '/')
93 {93 {
94 if (Dist != "/")94 if (Dist != "/")
@@ -159,7 +159,7 @@
159/* This is a shorter version that is designed to be < 60 chars or so */159/* This is a shorter version that is designed to be < 60 chars or so */
160string debPackagesIndex::ArchiveInfo(pkgCache::VerIterator Ver) const160string debPackagesIndex::ArchiveInfo(pkgCache::VerIterator Ver) const
161{161{
162 string Res = ::URI::SiteOnly(URI) + ' ';162 string Res = ::URI::NoUserPassword(URI) + ' ';
163 if (Dist[Dist.size() - 1] == '/')163 if (Dist[Dist.size() - 1] == '/')
164 {164 {
165 if (Dist != "/")165 if (Dist != "/")
@@ -195,7 +195,7 @@
195/* */195/* */
196string debPackagesIndex::Info(const char *Type) const 196string debPackagesIndex::Info(const char *Type) const
197{197{
198 string Info = ::URI::SiteOnly(URI) + ' ';198 string Info = ::URI::NoUserPassword(URI) + ' ';
199 if (Dist[Dist.size() - 1] == '/')199 if (Dist[Dist.size() - 1] == '/')
200 {200 {
201 if (Dist != "/")201 if (Dist != "/")
@@ -384,7 +384,7 @@
384/* */384/* */
385string debTranslationsIndex::Info(const char *Type) const 385string debTranslationsIndex::Info(const char *Type) const
386{386{
387 string Info = ::URI::SiteOnly(URI) + ' ';387 string Info = ::URI::NoUserPassword(URI) + ' ';
388 if (Dist[Dist.size() - 1] == '/')388 if (Dist[Dist.size() - 1] == '/')
389 {389 {
390 if (Dist != "/")390 if (Dist != "/")
391391
=== modified file 'debian/changelog'
--- debian/changelog 2010-02-02 16:58:59 +0000
+++ debian/changelog 2010-02-18 02:54:14 +0000
@@ -1,3 +1,11 @@
1apt (0.7.25ubuntu5) lucid; urgency=low
2
3 * Change the package index Info methods to allow apt-cache policy to be
4 useful when using several different archives on the same host.
5 (Closes: #329814, LP: #22354)
6
7 -- Robert Collins <robertc@robertcollins.net> Thu, 18 Feb 2010 13:36:54 +1100
8
1apt (0.7.25ubuntu4) lucid; urgency=low9apt (0.7.25ubuntu4) lucid; urgency=low
210
3 * cmdline/apt-cdrom.cc:11 * cmdline/apt-cdrom.cc:

Subscribers

People subscribed via source and target branches

to all changes: