- // Isolate the first word
- const char *I = Start;
- for(; I < Stop && *I != ' '; I++);
-
- // Process the flag field
- WordList StatusList[] = {{"installed",pkgCache::State::Installed},
- {}};
- if (GrabWord(string(Start,I-Start),StatusList,Pkg->CurrentState) == false)
- return _error->Error("Malformed Status line");
-
- /* A Status line marks the package as indicating the current
- version as well. Only if it is actually installed.. Otherwise
- the interesting dpkg handling of the status file creates bogus
- entries. */
- if (!(Pkg->CurrentState == pkgCache::State::NotInstalled ||
- Pkg->CurrentState == pkgCache::State::ConfigFiles))