Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/qa-scripts:master commit in: /
Date: Thu, 28 May 2020 09:21:36
Message-Id: 1590657688.798d6fc0ff14d19ae74c845fc53dbd536995a22a.mgorny@gentoo
1 commit: 798d6fc0ff14d19ae74c845fc53dbd536995a22a
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 28 09:20:48 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu May 28 09:21:28 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=798d6fc0
7
8 genrdeps: Build a .tar.xz for local use
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 genrdeps-index.py | 8 ++++++++
13 1 file changed, 8 insertions(+)
14
15 diff --git a/genrdeps-index.py b/genrdeps-index.py
16 index cdb94c0..1f0b24c 100755
17 --- a/genrdeps-index.py
18 +++ b/genrdeps-index.py
19 @@ -9,6 +9,7 @@ import errno
20 import os
21 import os.path
22 import shutil
23 +import subprocess
24 import sys
25
26 import pkgcore.config
27 @@ -101,6 +102,13 @@ def main():
28 os.rename(newdir, outdir)
29 shutil.rmtree(olddir, onerror=rmtree_ignore_enoent)
30
31 + subprocess.check_call(
32 + ['tar', '-cf', 'rdeps.tar'] + [gi for g, gi in GROUPS],
33 + cwd=args.outputdir)
34 + subprocess.check_call(
35 + ['xz', '-9', 'rdeps.tar'],
36 + cwd=args.outputdir)
37 +
38 return 0