diff options
| author | Joey Hess <joey@kitenet.net> | 2014-11-22 13:44:25 -0400 |
|---|---|---|
| committer | Joey Hess <joey@kitenet.net> | 2014-11-22 13:44:25 -0400 |
| commit | 8e5551c925828fe1f5133c3c9e86d13722c09f89 (patch) | |
| tree | 49f2088234ae159238baf63a54b36dbb01355664 /src | |
| parent | debe58511f882fffaaf2440d3fc19becc9d1e93d (diff) | |
avoid unncessary apt-get upgrade
Diffstat (limited to 'src')
| -rw-r--r-- | src/Propellor/CmdLine.hs | 3 |
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 " && " |
