]> git.saurik.com Git - apt.git/blob - apt-inst/database.cc
buffer in the very unlikely event that someone adds 10 ...
[apt.git] / apt-inst / database.cc
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 /*{{{*/
11 #ifdef __GNUG__
12 #pragma implementation "apt-pkg/database.h"
13 #endif
14
15 #include <apt-pkg/database.h>
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 */
22 bool pkgDataBase::GetMetaTmp(string &Dir)
23 {
24 if (MetaDir.empty() == true)
25 if (InitMetaTmp(MetaDir) == false)
26 return false;
27 Dir = MetaDir;
28 return true;
29 }
30 /*}}}*/