summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/cacheset.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-pkg/cacheset.cc b/apt-pkg/cacheset.cc
index 346bad3aa..d95a32aff 100644
--- a/apt-pkg/cacheset.cc
+++ b/apt-pkg/cacheset.cc
@@ -450,6 +450,8 @@ bool VersionContainerInterface::FromString(VersionContainerInterface * const vci
if(FileExists(pkg))
{
PackageContainerInterface::FromString(&pkgset, Cache, pkg, helper);
+ if(pkgset.size() == 0)
+ return false;
return VersionContainerInterface::FromPackage(vci, Cache, pkgset.begin(), fallback, helper);
}