Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Do not pass name to the unit script
Temporary change: reverting changes from c098234 because getopt ignores
"required" attr for the option, so name could be only required attrrbute and
some API clients doesn't supply it

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
  • Loading branch information
Denis Zalevskiy committed Oct 26, 2015
1 parent 12ca8e2 commit a74ee5b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/unit.cpp
Expand Up @@ -35,8 +35,6 @@ QVariantMap options_info
, {"required", true}, {"has_param", true}})}
, {"home-dir", map({{"short", "H"}, {"long", "home-dir"}
, {"required", true}, {"has_param", true}})}
, {"name", map({{"short", "n"}, {"long", "name"}
, {"required", true}, {"has_param", true}})}
, {"action", map({{"short", "a"}, {"long", "action"}
, {"required", true}, {"has_param", true}})}};

Expand Down
1 change: 0 additions & 1 deletion src/vault.cpp
Expand Up @@ -854,7 +854,6 @@ void Unit::execScript(const QString &action)
error::raise({{"msg", "Should be executable"}, {"script", script}});
}
QStringList args = { "--action", action,
"--name", m_unit,
"--dir", QDir(m_data).absolutePath(),
"--bin-dir", QDir(m_blobs).absolutePath(),
"--home-dir", m_home };
Expand Down

0 comments on commit a74ee5b

Please sign in to comment.