summaryrefslogtreecommitdiff
path: root/apt-private
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2014-01-30 15:08:12 +0100
committerMichael Vogt <mvo@debian.org>2014-01-30 15:08:12 +0100
commit37c61d76869a50110e298b042660eb5120a282c8 (patch)
tree8acdf2275ed9e0e4584ed997d98844d3f5b3b179 /apt-private
parentacead5b93cf49ab33cba4be2ea8e1b253ed0f2bf (diff)
parent960975a175c2a21df749727162d5677cdc97a36e (diff)
Merge remote-tracking branch 'mvo/debian/sid' into ubuntu/master
Diffstat (limited to 'apt-private')
-rw-r--r--apt-private/private-output.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/apt-private/private-output.cc b/apt-private/private-output.cc
index a8bbad9e5..e9b8037da 100644
--- a/apt-private/private-output.cc
+++ b/apt-private/private-output.cc
@@ -68,8 +68,10 @@ std::string GetArchiveSuite(pkgCacheFile &CacheFile, pkgCache::VerIterator ver)
pkgCache::VerFileIterator VF = ver.FileList();
for (; VF.end() == false ; ++VF)
{
- // XXX: how to figure out the relevant suite? if its in multiple ones?
- suite = suite + "," + VF.File().Archive();
+ if(VF.File() == NULL || VF.File().Archive() == NULL)
+ suite = suite + "," + _("unknown");
+ else
+ suite = suite + "," + VF.File().Archive();
//suite = VF.File().Archive();
}
suite = suite.erase(0, 1);