]> git.saurik.com Git - apt-legacy.git/commitdiff
The first character of a package should not be case sensitive.
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 27 May 2011 06:30:57 +0000 (06:30 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 27 May 2011 06:30:57 +0000 (06:30 +0000)
A insensitive.diff

git-svn-id: http://svn.telesphoreo.org/trunk@754 514c082c-b64e-11dc-b46d-3d985efe055d

apt-pkg/pkgcache.cc

index 092ac880d9c6fa4dbdde00bef7a78d7f41056b72..c0e2e37dc6b7eddaf360667a1195dbf81b74cf3e 100644 (file)
@@ -199,7 +199,7 @@ pkgCache::PkgIterator pkgCache::FindPkg(const srkString &Name)
    Package *Pkg = PkgP + HeaderP->HashTable[Hash(Name)];
    for (; Pkg != PkgP; Pkg = PkgP + Pkg->NextPackage)
    {
-      if (Pkg->Name != 0 && StrP[Pkg->Name] == Name[0] &&
+      if (Pkg->Name != 0 &&
          stringcasecmp(Name,StrP + Pkg->Name) == 0)
         return PkgIterator(*this,Pkg);
    }