make it possible to build a module from a local directory

./eobuilder-ctl -d wheezy -b wip/misc-fred ~/src/eo/wcs
This commit is contained in:
Frédéric Péters 2015-09-10 22:38:16 +02:00
parent ebb07e98cf
commit 87ba9686b4
1 changed files with 5 additions and 2 deletions

View File

@ -410,8 +410,11 @@ def main():
else:
last_tag = "0.0"
os.chdir(settings.GIT_PATH)
call("git clone %s/%s.git" % \
(settings.GIT_REPOSITORY_URL, project_name))
if project_name.startswith('/'):
call("git clone %s" % project_name)
else:
call("git clone %s/%s.git" % \
(settings.GIT_REPOSITORY_URL, project_name))
if options.force:
print "+ Warning force a new build"
new = 1