Просмотр исходного кода

Fixed minor configuration ordering frooble
Author: jgg
Date: 2001-04-27 04:47:58 GMT
Fixed minor configuration ordering frooble

Arch Librarian лет назад: 22
Родитель
Сommit
7cd4153b30
1 измененных файлов с 5 добавлено и 2 удалено
  1. 5 2
      apt-pkg/orderlist.cc

+ 5 - 2
apt-pkg/orderlist.cc

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
 // Description								/*{{{*/
-// $Id: orderlist.cc,v 1.12 2001/02/20 07:03:17 jgg Exp $
+// $Id: orderlist.cc,v 1.13 2001/04/27 04:47:58 jgg Exp $
 /* ######################################################################
 /* ######################################################################
 
 
    Order List - Represents and Manipulates an ordered list of packages.
    Order List - Represents and Manipulates an ordered list of packages.
@@ -119,8 +119,11 @@ bool pkgOrderList::IsMissing(PkgIterator Pkg)
    if (Pkg.State() == pkgCache::PkgIterator::NeedsConfigure && 
    if (Pkg.State() == pkgCache::PkgIterator::NeedsConfigure && 
        Cache[Pkg].Keep() == true)
        Cache[Pkg].Keep() == true)
       return false;
       return false;
+
+   if (FileList == 0)
+      return false;
    
    
-   if (FileList != 0 && FileList[Pkg->ID].empty() == false)
+   if (FileList[Pkg->ID].empty() == false)
       return false;
       return false;
    return true;
    return true;
 }
 }