]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/cacheset.cc
close server if parsing of header field failed
[apt.git] / apt-pkg / cacheset.cc
index db34c4a20c47d94199018afed4c509c810759fc1..816925c4dbc00bbbbe5b13d21fa6b969919cba00 100644 (file)
@@ -336,7 +336,7 @@ bool CacheSetHelper::PackageFromString(PackageContainerInterface * const pci, pk
 bool CacheSetHelper::PackageFromCommandLine(PackageContainerInterface * const pci, pkgCacheFile &Cache, const char **cmdline) {
        bool found = false;
        for (const char **I = cmdline; *I != 0; ++I)
 bool CacheSetHelper::PackageFromCommandLine(PackageContainerInterface * const pci, pkgCacheFile &Cache, const char **cmdline) {
        bool found = false;
        for (const char **I = cmdline; *I != 0; ++I)
-               found |= PackageFrom(CacheSetHelper::PACKAGENAME, pci, Cache, *I);
+               found |= PackageFrom(CacheSetHelper::STRING, pci, Cache, *I);
        return found;
 }
                                                                        /*}}}*/
        return found;
 }
                                                                        /*}}}*/