From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1174795-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 8F8BF1382C5
	for <garchives@archives.gentoo.org>; Thu, 28 May 2020 09:21:36 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id B8877E0831;
	Thu, 28 May 2020 09:21:35 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 9BA8AE0831
	for <gentoo-commits@lists.gentoo.org>; Thu, 28 May 2020 09:21:35 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 1A51234ECE5
	for <gentoo-commits@lists.gentoo.org>; Thu, 28 May 2020 09:21:34 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id E210F21E
	for <gentoo-commits@lists.gentoo.org>; Thu, 28 May 2020 09:21:30 +0000 (UTC)
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" <mgorny@gentoo.org>
Message-ID: <1590657688.798d6fc0ff14d19ae74c845fc53dbd536995a22a.mgorny@gentoo>
Subject: [gentoo-commits] proj/qa-scripts:master commit in: /
X-VCS-Repository: proj/qa-scripts
X-VCS-Files: genrdeps-index.py
X-VCS-Directories: /
X-VCS-Committer: mgorny
X-VCS-Committer-Name: Michał Górny
X-VCS-Revision: 798d6fc0ff14d19ae74c845fc53dbd536995a22a
X-VCS-Branch: master
Date: Thu, 28 May 2020 09:21:30 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: d9c542ee-2df0-43bf-a3fe-c759f5c5de76
X-Archives-Hash: 1c3b5c0e90031ee453c0e00d3857c8d4

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