summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/apt-get.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc
index 82f202103..3ffb740a6 100644
--- a/cmdline/apt-get.cc
+++ b/cmdline/apt-get.cc
@@ -1227,7 +1227,7 @@ pkgSrcRecords::Parser *FindSrc(const char *Name,pkgRecords &Recs,
continue;
//std::cout << VF.File().Archive() << std::endl;
- if(VF.File().Archive() == DefRel)
+ if(VF.File().Archive() && (VF.File().Archive() == DefRel))
{
VerTag = Ver.VerStr();
break;