[jaunty] apt-get source linux-image`-uname -r` does not download sources
Bug #330103 reported by
Khashayar Naderehvandi
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Fix Released
|
Medium
|
Michael Vogt | ||
Jaunty |
Fix Released
|
Medium
|
Michael Vogt |
Bug Description
During my intrepid days, the following command would download the linux sources along with everything needed to rebuild a kernel package locally:
apt-get source linux-image-`uname -r`
That's precisely the behavior I would expect.
In jaunty, however, the same command only gets me the linux-meta stuff. Which makes this a regression, I guess.
To post a comment you must log in.
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)
{