Add fabfile marker after install via fabfile

This commit is contained in:
Roberto Rosario
2012-07-05 14:44:13 -04:00
parent 87508db11e
commit 8f9207f4fc
2 changed files with 9 additions and 0 deletions

Binary file not shown.

View File

@@ -1,3 +1,5 @@
import os
from fabric.api import run, sudo, cd, env, task
from fabric.colors import green
@@ -5,6 +7,10 @@ from ..literals import OS_UBUNTU, OS_FEDORA, OS_DEBIAN
from ..conf import setup_environment
import linux, ubuntu, fedora, debian
def touch(fname, times = None):
with file(fname, 'a'):
os.utime(fname, times)
@task
def install_dependencies():
@@ -98,3 +104,6 @@ def post_install():
fedora.post_install()
elif env.os == OS_DEBIAN:
debian.post_install()
fabfile_marker = os.path.join(env.repository_path, 'fabfile_install')
touch(fabfile_marker)