// No source package name..
if (Src.empty() == true)
Src = TmpSrc;
+ else
+ MatchSrcOnly = true;
// The best hit
pkgSrcRecords::Parser *Last = 0;
@@ -1291,13 +1295,13 @@
binary packages in the search */
pkgSrcRecords::Parser *Parse;
SrcRecs.Restart();
- while ((Parse = SrcRecs.Find(Src.c_str(),false)) != 0)
+ while ((Parse = SrcRecs.Find(Src.c_str(),MatchSrcOnly)) != 0)
{
string Ver = Parse->Version();
Here is a patch that should fix the issue:
=== modified file 'cmdline/ apt-get. cc'
--- cmdline/apt-get.cc 2008-12-16 06:37:02 +0000
+++ cmdline/apt-get.cc 2009-03-05 13:36:03 +0000
@@ -1272,10 +1272,14 @@
}
}
}
+
+ bool MatchSrcOnly = false;
// No source package name..
if (Src.empty() == true)
Src = TmpSrc;
+ else
+ MatchSrcOnly = true;
// The best hit ds::Parser *Last = 0; ds::Parser *Parse; Restart( ); Find(Src. c_str() ,false) ) != 0) Find(Src. c_str() ,MatchSrcOnly) ) != 0)
pkgSrcRecor
@@ -1291,13 +1295,13 @@
binary packages in the search */
pkgSrcRecor
SrcRecs.
- while ((Parse = SrcRecs.
+ while ((Parse = SrcRecs.
{
string Ver = Parse->Version();
// show name mismatches Package( ).c_str( ), Src.c_str()); Package( ).c_str( ), Src.c_str());
if (IsMatch == true && Parse->Package() != Src)
- ioprintf(c1out, _("No source package '%s' picking '%s' instead"), Parse->
+ ioprintf(c1out, _("No source package '%s' picking '%s' instead\n"), Parse->
if (VerTag.empty() == false)
{