summaryrefslogtreecommitdiff
path: root/src/Propellor
diff options
context:
space:
mode:
authorJoey Hess2014-11-22 13:44:25 -0400
committerJoey Hess2014-11-22 13:44:25 -0400
commit8e5551c925828fe1f5133c3c9e86d13722c09f89 (patch)
tree49f2088234ae159238baf63a54b36dbb01355664 /src/Propellor
parentdebe58511f882fffaaf2440d3fc19becc9d1e93d (diff)
avoid unncessary apt-get upgrade
Diffstat (limited to 'src/Propellor')
-rw-r--r--src/Propellor/CmdLine.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Propellor/CmdLine.hs b/src/Propellor/CmdLine.hs
index c681a08d..aa294fb5 100644
--- a/src/Propellor/CmdLine.hs
+++ b/src/Propellor/CmdLine.hs
@@ -181,8 +181,7 @@ spin target relay hst = do
updatecmd = mkcmd
[ "if [ ! -d " ++ localdir ++ " ]"
, "then (" ++ intercalate " && "
- [ "apt-get update"
- , "apt-get --no-install-recommends --no-upgrade -y install git make"
+ [ "if ! git --version || ! make --version; the apt-get update && apt-get --no-install-recommends --no-upgrade -y install git make; fi"
, "echo " ++ toMarked statusMarker (show NeedGitClone)
] ++ ") || echo " ++ toMarked statusMarker (show NeedPrecompiled)
, "else " ++ intercalate " && "