diff options
author | Michael Vogt <mvo@debian.org> | 2014-01-30 15:08:12 +0100 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2014-01-30 15:08:12 +0100 |
commit | 37c61d76869a50110e298b042660eb5120a282c8 (patch) | |
tree | 8acdf2275ed9e0e4584ed997d98844d3f5b3b179 /apt-private | |
parent | acead5b93cf49ab33cba4be2ea8e1b253ed0f2bf (diff) | |
parent | 960975a175c2a21df749727162d5677cdc97a36e (diff) |
Merge remote-tracking branch 'mvo/debian/sid' into ubuntu/master
Diffstat (limited to 'apt-private')
-rw-r--r-- | apt-private/private-output.cc | 6 |
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); |