[med-svn] [aghermann] 31/85: ED: cover all TExpDirLevel values in make_dirname

andrei zavada hmmr-guest at alioth.debian.org
Thu Sep 26 23:46:27 UTC 2013


This is an automated email from the git hooks/post-receive script.

hmmr-guest pushed a commit to branch master
in repository aghermann.

commit 25a9a6e9f1fc019e01a39e4e7c870bf5ca6b6bc7
Author: Andrei Zavada <johnhommer at gmail.com>
Date:   Sun Sep 15 02:20:08 2013 +0300

    ED: cover all TExpDirLevel values in make_dirname
---
 upstream/src/aghermann/expdesign/expdesign.cc |    9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/upstream/src/aghermann/expdesign/expdesign.cc b/upstream/src/aghermann/expdesign/expdesign.cc
index 0ef1d7f..7295f05 100644
--- a/upstream/src/aghermann/expdesign/expdesign.cc
+++ b/upstream/src/aghermann/expdesign/expdesign.cc
@@ -205,6 +205,9 @@ CExpDesign::
 make_dirname( TExpDirLevel level, const SExpDirLevelId& level_id) const
 {
         switch (level) {
+        case TExpDirLevel::transient:
+                return "/tmp";
+
         case TExpDirLevel::session:
         {
                 TJGroups::const_iterator Gi;
@@ -231,6 +234,12 @@ make_dirname( TExpDirLevel level, const SExpDirLevelId& level_id) const
         case TExpDirLevel::experiment:
                 return make_dirname();
 
+        case TExpDirLevel::user:
+                return move(str::sasprintf( "%s/.local/share/aghermann", getenv("HOME")));
+
+        case TExpDirLevel::system:
+                return PACKAGE_DATADIR "/patterns";
+
         default:
                 throw invalid_argument ("level not appropriate");
         }

-- 
Alioth's /git/debian-med/git-commit-notice on /srv/git.debian.org/git/debian-med/aghermann.git



More information about the debian-med-commit mailing list