aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manual.org3
-rw-r--r--tatt/scriptwriter.py4
-rw-r--r--templates/commit-header3
3 files changed, 7 insertions, 3 deletions
diff --git a/manual.org b/manual.org
index 2c38142..3887ba5 100644
--- a/manual.org
+++ b/manual.org
@@ -80,5 +80,8 @@ The specification of the configuration file can be found in dot-tatt-spec which
# usecombis=3
# Note that All USE-flags on and all USE-flags off will always be tested.
+# Location of a checked out CVS Gentoo tree for repoman checks and commit scripts
+# repodir="./gentoo-x86"
+
# Url where the pre-generated rindex is to be found
# tinderbox-url="http://qa-reports.gentoo.org/output/genrdeps/rindex/"
diff --git a/tatt/scriptwriter.py b/tatt/scriptwriter.py
index a63cfbe..cf42b48 100644
--- a/tatt/scriptwriter.py
+++ b/tatt/scriptwriter.py
@@ -129,7 +129,9 @@ def writecommitscript (job, bugnum, packlist, config):
if os.path.isfile(outfilename):
print(("WARNING: Will overwrite " + outfilename))
outfile = open(outfilename,'w')
- outfile.write (commitheaderfile.read().replace("@@JOB@@", job))
+ cheader = commitheaderfile.read().replace("@@JOB@@", job)
+ cheader = cheader.replace(@@REPODIR@@, config['repodir'])
+ outfile.write (cheader)
# First round (ekeyword)
for pack in packlist:
s = csnippet.replace("@@BUG@@", bugnum)
diff --git a/templates/commit-header b/templates/commit-header
index 6ad16f1..d46d596 100644
--- a/templates/commit-header
+++ b/templates/commit-header
@@ -2,5 +2,4 @@
# CVS Stabeling for @@JOB@@
# This is the place to move to the right location:
-cd ./gentoo-x86
-
+cd @@REPODIR@@