database.cc 869 B

1234567891011121314151617181920212223242526272829
  1. // -*- mode: cpp; mode: fold -*-
  2. // Description /*{{{*/
  3. // $Id: database.cc,v 1.2 2001/02/20 07:03:16 jgg Exp $
  4. /* ######################################################################
  5. Data Base Abstraction
  6. ##################################################################### */
  7. /*}}}*/
  8. // Include Files /*{{{*/
  9. #include<config.h>
  10. #include <apt-pkg/database.h>
  11. /*}}}*/
  12. // DataBase::GetMetaTmp - Get the temp dir /*{{{*/
  13. // ---------------------------------------------------------------------
  14. /* This re-initializes the meta temporary directory if it hasn't yet
  15. been inited for this cycle. The flag is the emptyness of MetaDir */
  16. bool pkgDataBase::GetMetaTmp(string &Dir)
  17. {
  18. if (MetaDir.empty() == true)
  19. if (InitMetaTmp(MetaDir) == false)
  20. return false;
  21. Dir = MetaDir;
  22. return true;
  23. }
  24. /*}}}*/