소스 검색

Fixed bad return for missing updates directory
Author: jgg
Date: 1999-08-03 05:21:19 GMT
Fixed bad return for missing updates directory

Arch Librarian 22 년 전
부모
커밋
8867447c72
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      apt-pkg/deb/dpkginit.cc

+ 2 - 2
apt-pkg/deb/dpkginit.cc

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
-// $Id: dpkginit.cc,v 1.4 1999/07/30 05:36:52 jgg Exp $
+// $Id: dpkginit.cc,v 1.5 1999/08/03 05:21:19 jgg Exp $
 /* ######################################################################
 
    DPKG init - Initialize the dpkg stuff
@@ -91,7 +91,7 @@ bool pkgDpkgLock::CheckUpdates()
    string File = flNotFile(_config->Find("Dir::State::status")) + "updates/";
    DIR *DirP = opendir(File.c_str());
    if (DirP == 0)
-      return true;
+      return false;
    
    /* We ignore any files that are not all digits, this skips .,.. and 
       some tmp files dpkg will leave behind.. */