commit: 798d6fc0ff14d19ae74c845fc53dbd536995a22a
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu May 28 09:20:48 2020 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu May 28 09:21:28 2020 +0000
URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=798d6fc0
genrdeps: Build a .tar.xz for local use
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
genrdeps-index.py | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/genrdeps-index.py b/genrdeps-index.py
index cdb94c0..1f0b24c 100755
--- a/genrdeps-index.py
+++ b/genrdeps-index.py
@@ -9,6 +9,7 @@ import errno
import os
import os.path
import shutil
+import subprocess
import sys
import pkgcore.config
@@ -101,6 +102,13 @@ def main():
os.rename(newdir, outdir)
shutil.rmtree(olddir, onerror=rmtree_ignore_enoent)
+ subprocess.check_call(
+ ['tar', '-cf', 'rdeps.tar'] + [gi for g, gi in GROUPS],
+ cwd=args.outputdir)
+ subprocess.check_call(
+ ['xz', '-9', 'rdeps.tar'],
+ cwd=args.outputdir)
+
return 0