[gentoo-commits] proj/tatt:v0.9 commit in: tatt/

2023-04-24 Thread Sam James
commit: efb6c67172d2f53047dca0dd0573ee2de559f4d7
Author: Sam James  gentoo  org>
AuthorDate: Tue Nov  2 12:12:37 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Nov  2 12:12:37 2021 +
URL:https://gitweb.gentoo.org/proj/tatt.git/commit/?id=efb6c671

tatt/dot-tatt-spec: default to arch=amd64, not x86

Signed-off-by: Sam James  gentoo.org>

 tatt/dot-tatt-spec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tatt/dot-tatt-spec b/tatt/dot-tatt-spec
index 33aff95..67eb90b 100644
--- a/tatt/dot-tatt-spec
+++ b/tatt/dot-tatt-spec
@@ -2,7 +2,7 @@ successmessage=string(default="Archtested on @@ARCH@@: 
Everything fine")
 
ignoreprefix=string_list(default=list("elibc_","video_cards_","linguas_","python_targets_","python_single_target_","kdeenablefinal","test","debug"))
 template-dir=string(default="/usr/share/tatt/templates/")
 unmaskdir=string(default="/etc/portage/package.accept_keywords")
-arch=string(default="x86")
+arch=string(default="amd64")
 defaultopts=string(default="")
 emergeopts=string(default="")
 rdeps=integer(0,512,default=10)



[gentoo-commits] proj/tatt:v0.9 commit in: /

2023-04-24 Thread Sam James
commit: 0ef17201771e8658de76be559dbbe5a752dcf296
Author: Sam James  gentoo  org>
AuthorDate: Sun Oct 31 22:11:13 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Nov  2 11:52:22 2021 +
URL:https://gitweb.gentoo.org/proj/tatt.git/commit/?id=0ef17201

templates/tatt_functions.sh: create logs dir

Signed-off-by: Sam James  gentoo.org>

 setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index fcd23cb..81904f3 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
 from setuptools import setup, find_packages
 
 setup(name = "tatt",
-  version = "0.2",
+  version = "0.9",
   packages = find_packages(),
   scripts = ['scripts/tatt'],
   package_data = {



[gentoo-commits] proj/tatt:v0.9 commit in: tatt/

2023-04-24 Thread Sam James
commit: 70486f7f37870796975ce228751fee68c64cfc88
Author: Sam James  gentoo  org>
AuthorDate: Wed Oct 12 19:34:37 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Oct 12 19:34:37 2022 +
URL:https://gitweb.gentoo.org/proj/tatt.git/commit/?id=70486f7f

scriptwriter.py: only query rdeps site if rdeps config > 0

No point fetching if we're not testing any.

Signed-off-by: Sam James  gentoo.org>

 tatt/scriptwriter.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tatt/scriptwriter.py b/tatt/scriptwriter.py
index 4d60e34..38437f5 100644
--- a/tatt/scriptwriter.py
+++ b/tatt/scriptwriter.py
@@ -120,7 +120,8 @@ def writerdepscript(job, config):
 for p in job.packageList:
 atom = p.packageCatName()
 pkgs.append(atom)
-rdeps = rdeps + stablerdeps (atom, config)
+if config['rdeps'] > 0:
+rdeps = rdeps + stablerdeps (atom, config)
 if len(rdeps) == 0:
 print("No stable rdeps for " + job.name)
 return



[gentoo-commits] proj/tatt:v0.9 commit in: templates/

2023-04-24 Thread Sam James
commit: f78714d5cb93f4f88e0dd0ddd592c76dc932c277
Author: Sam James  gentoo  org>
AuthorDate: Sun Oct 31 22:11:13 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Oct 31 22:11:13 2021 +
URL:https://gitweb.gentoo.org/proj/tatt.git/commit/?id=f78714d5

templates/tatt_functions.sh: create logs dir

Signed-off-by: Sam James  gentoo.org>

 templates/tatt_functions.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/templates/tatt_functions.sh b/templates/tatt_functions.sh
index d4e7cdf..a672caf 100644
--- a/templates/tatt_functions.sh
+++ b/templates/tatt_functions.sh
@@ -31,6 +31,7 @@ function tatt_pkg_error
   BUILDDIR=/var/tmp/portage/${CP}
   BUILDLOG=${BUILDDIR}/temp/build.log
   if [[ -n "${TATT_BUILDLOGDIR}" && -s "${BUILDLOG}" ]]; then
+mkdir -p "${TATT_BUILDLOGDIR}"
 LOGNAME=$(mktemp -p "${TATT_BUILDLOGDIR}" 
"${CP/\//_}_${TATT_TEST_TYPE}_X")
 mv "${BUILDLOG}" "${LOGNAME}"
 echo "log has been saved as ${LOGNAME}" >> "${TATT_REPORTFILE}"