Commit 7ec521f5 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

Updated fabfile

Handle version files for projects that are not using the synnefo
parent 2e37e544
......@@ -223,6 +223,15 @@ def nosigndebs():
env.signdebs = False
# Commands which automatically add and reset the version files which are not tracked by
# git. Those version files are created from each using the synnefo-common
# update_version, so we execute `python clean` to ensure that file gets
# created and git add will not fail. The reset of those files after each build
# certifies that succeded git checkouts will not fail due to existing local
# changes.
add_versions_cmd = "find . -regextype posix-egrep -regex \".*$|.*\/synnefo\/versions\/.*py$\" -exec git add -f {} \;"
reset_versions_cmd = "find . -regextype posix-egrep -regex \".*$|.*\/synnefo\/versions\/.*py$\" -exec git reset {} \;"
def builddeb(p, master="master", branch="debian-0.8"):
with co(branch):
......@@ -231,12 +240,12 @@ def builddeb(p, master="master", branch="debian-0.8"):
local("git merge master")
local("if [ ! -d .git ]; then mkdir .git; fi")
local("python clean")
local("git add synnefo/versions/*.py -f")
local(("git-buildpackage --git-upstream-branch=%s --git-debian-branch=%s"
" --git-export=INDEX --git-ignore-new %s") %
(master, branch, "" if env.signdebs else "-us -uc"))
local("rm -rf .git")
local("git reset synnefo/versions/*.py")
info("Done building debian package for %s" % p)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment