File: database.cc

package info (click to toggle)
apt 0.6.46.4-0.1%2Betch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 8,112 kB
  • ctags: 3,425
  • sloc: cpp: 29,961; xml: 9,133; sh: 3,027; makefile: 673; perl: 209
file content (30 lines) | stat: -rw-r--r-- 917 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// -*- mode: cpp; mode: fold -*-
// Description								/*{{{*/
// $Id: database.cc,v 1.2 2001/02/20 07:03:16 jgg Exp $
/* ######################################################################

   Data Base Abstraction
   
   ##################################################################### */
									/*}}}*/
// Include Files							/*{{{*/
#ifdef __GNUG__
#pragma implementation "apt-pkg/database.h"
#endif

#include <apt-pkg/database.h>
									/*}}}*/

// DataBase::GetMetaTmp - Get the temp dir				/*{{{*/
// ---------------------------------------------------------------------
/* This re-initializes the meta temporary directory if it hasn't yet 
   been inited for this cycle. The flag is the emptyness of MetaDir */
bool pkgDataBase::GetMetaTmp(string &Dir)
{
   if (MetaDir.empty() == true)
      if (InitMetaTmp(MetaDir) == false)
	 return false;
   Dir = MetaDir;
   return true;
}
									/*}}}*/