diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-05-28 11:20:48 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-05-28 11:21:28 +0200 |
commit | 798d6fc0ff14d19ae74c845fc53dbd536995a22a (patch) | |
tree | 4b22b9927e1c6e82c518371a9ed87bebc22ea6ac /genrdeps-index.py | |
parent | keyrings: ensure ldap simple binding is used (diff) | |
download | qa-scripts-798d6fc0ff14d19ae74c845fc53dbd536995a22a.tar.gz qa-scripts-798d6fc0ff14d19ae74c845fc53dbd536995a22a.tar.bz2 qa-scripts-798d6fc0ff14d19ae74c845fc53dbd536995a22a.zip |
genrdeps: Build a .tar.xz for local use
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'genrdeps-index.py')
-rwxr-xr-x | genrdeps-index.py | 8 |
1 files changed, 8 insertions, 0 deletions
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 |