]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/deb/debsystem.cc
* apt-pkg/deb/dpkgpm.{cc,h}:
[apt.git] / apt-pkg / deb / debsystem.cc
index 5a4cbe6542e88dfe1b7260f57ba68264824afcda..11a84f1c61e5aa0517b9d1d742371a27d5551ec0 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: debsystem.cc,v 1.3 2001/04/29 05:13:51 jgg Exp $
+// $Id: debsystem.cc,v 1.4 2004/01/26 17:01:53 mdz Exp $
 /* ######################################################################
 
    System - Abstraction for running on different systems.
    ##################################################################### */
                                                                        /*}}}*/
 // Include Files                                                       /*{{{*/
-#ifdef __GNUG__
-#pragma implementation "apt-pkg/debsystem.h"
-#endif
-
 #include <apt-pkg/debsystem.h>
 #include <apt-pkg/debversion.h>
 #include <apt-pkg/debindexfile.h>
@@ -37,6 +33,7 @@ debSystem::debSystem()
 {
    LockFD = -1;
    LockCount = 0;
+   StatusFile = 0;
    
    Label = "Debian dpkg interface";
    VS = &debVS;
@@ -163,7 +160,12 @@ bool debSystem::Initialize(Configuration &Cnf)
    Cnf.CndSet("Dir::State::userstatus","status.user"); // Defunct
    Cnf.CndSet("Dir::State::status","/var/lib/dpkg/status");
    Cnf.CndSet("Dir::Bin::dpkg","/usr/bin/dpkg");
-   
+
+   if (StatusFile) {
+     delete StatusFile;
+     StatusFile = 0;
+   }
+
    return true;
 }
                                                                        /*}}}*/