]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/pkgcache.cc
* cmdline/apt-mark:
[apt.git] / apt-pkg / pkgcache.cc
index 385d247ea13bfbd3603d2b2f4b4dcd56497219de..6687864ee888b4af5bd7f5195951b7b88e996f11 100644 (file)
@@ -163,7 +163,7 @@ unsigned long pkgCache::sHash(const string &Str) const
 {
    unsigned long Hash = 0;
    for (string::const_iterator I = Str.begin(); I != Str.end(); I++)
-      Hash = 5*Hash + tolower(*I);
+      Hash = 5*Hash + tolower_ascii(*I);
    return Hash % _count(HeaderP->HashTable);
 }
 
@@ -171,7 +171,7 @@ unsigned long pkgCache::sHash(const char *Str) const
 {
    unsigned long Hash = 0;
    for (const char *I = Str; *I != 0; I++)
-      Hash = 5*Hash + tolower(*I);
+      Hash = 5*Hash + tolower_ascii(*I);
    return Hash % _count(HeaderP->HashTable);
 }
 
@@ -274,7 +274,7 @@ pkgCache::PkgIterator::OkState pkgCache::PkgIterator::State() const
       return NeedsUnpack;
    
    if (Pkg->CurrentState == pkgCache::State::UnPacked ||
-       Pkg->CurrentState == pkgCache::State::HalfConfigured) ||
+       Pkg->CurrentState == pkgCache::State::HalfConfigured ||
       //we don't need to care for triggers awaiting packages
       //dpkg will deal with them automatically when the 
       //trigger pending action is run (those packages are usually