summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2009-08-12 13:17:36 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2009-08-12 13:17:36 +0200
commit619596fcd20e3fda2ab352103cfeb9437015dfbc (patch)
treec0d6287c315fbde14a9e2a80f4a9ac45631e6dac /cmdline
parent83cb4069352c9e30482dcbb75a5c60de26a3cf90 (diff)
[cmdline/apt-get.cc]
- use SourceVersion instead of the BinaryVersion to get the source Patch by Matt Kraai, thanks! (Closes: #382826)
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/apt-get.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc
index 34ffaf11a..71566fd55 100644
--- a/cmdline/apt-get.cc
+++ b/cmdline/apt-get.cc
@@ -1255,7 +1255,10 @@ pkgSrcRecords::Parser *FindSrc(const char *Name,pkgRecords &Recs,
//std::cout << VF.File().Archive() << std::endl;
if(VF.File().Archive() && (VF.File().Archive() == DefRel))
{
- VerTag = Ver.VerStr();
+ pkgRecords::Parser &Parse = Recs.Lookup(VF);
+ VerTag = Parse.SourceVer();
+ if (VerTag.empty())
+ VerTag = Ver.VerStr();
break;
}
}