reorder includes: add <config.h> if needed and include it at first
[ntk/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
AL
13#include <apt-pkg/database.h>
14 /*}}}*/
15
16// DataBase::GetMetaTmp - Get the temp dir /*{{{*/
17// ---------------------------------------------------------------------
18/* This re-initializes the meta temporary directory if it hasn't yet
19 been inited for this cycle. The flag is the emptyness of MetaDir */
20bool pkgDataBase::GetMetaTmp(string &Dir)
21{
22 if (MetaDir.empty() == true)
23 if (InitMetaTmp(MetaDir) == false)
24 return false;
25 Dir = MetaDir;
26 return true;
27}
28 /*}}}*/