diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:52:47 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:52:47 +0000 |
commit | 65a1e968442361247b646dc61843f841235114e0 (patch) | |
tree | 733c37e21376beceac7537511cf78d7160ac2892 /apt-pkg/pkgcachegen.cc | |
parent | be5dbaf215aa054bdc8a5cab67e5ce429215b7aa (diff) |
Minor fixes
Author: jgg
Date: 1999-02-08 07:30:49 GMT
Minor fixes
Diffstat (limited to 'apt-pkg/pkgcachegen.cc')
-rw-r--r-- | apt-pkg/pkgcachegen.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apt-pkg/pkgcachegen.cc b/apt-pkg/pkgcachegen.cc index 89bcec801..959075c0f 100644 --- a/apt-pkg/pkgcachegen.cc +++ b/apt-pkg/pkgcachegen.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: pkgcachegen.cc,v 1.27 1999/01/27 02:48:52 jgg Exp $ +// $Id: pkgcachegen.cc,v 1.28 1999/02/08 07:30:49 jgg Exp $ /* ###################################################################### Package Cache Generator - Generator for the cache structure. @@ -74,6 +74,9 @@ bool pkgCacheGenerator::MergeList(ListParser &List) { // Get a pointer to the package structure string PackageName = List.Package(); + if (PackageName.empty() == true) + return false; + pkgCache::PkgIterator Pkg; if (NewPackage(Pkg,PackageName) == false) return _error->Error("Error occured while processing %s (NewPackage)",PackageName.c_str()); |