]> git.saurik.com Git - apt.git/blame - apt-inst/database.cc
merge with my debian-sid branch
[apt.git] / apt-inst / database.cc
CommitLineData
b2e465d6
AL
1// -*- mode: cpp; mode: fold -*-
2// Description /*{{{*/
3// $Id: database.cc,v 1.2 2001/02/20 07:03:16 jgg Exp $
4/* ######################################################################
5
6 Data Base Abstraction
7
8 ##################################################################### */
9 /*}}}*/
10// Include Files /*{{{*/
ea542140
DK
11#include<config.h>
12
b2e465d6 13#include <apt-pkg/database.h>
472ff00e
DK
14#include <apt-pkg/filelist.h>
15#include <apt-pkg/pkgcachegen.h>
b2e465d6
AL
16 /*}}}*/
17
18// DataBase::GetMetaTmp - Get the temp dir /*{{{*/
19// ---------------------------------------------------------------------
20/* This re-initializes the meta temporary directory if it hasn't yet
21 been inited for this cycle. The flag is the emptyness of MetaDir */
8f3ba4e8 22bool pkgDataBase::GetMetaTmp(std::string &Dir)
b2e465d6
AL
23{
24 if (MetaDir.empty() == true)
25 if (InitMetaTmp(MetaDir) == false)
26 return false;
27 Dir = MetaDir;
28 return true;
29}
30 /*}}}*/
472ff00e
DK
31pkgDataBase::~pkgDataBase()
32{
33 delete Cache;
34 delete FList;
35}