From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-743934-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 01044138A1D
	for <garchives@archives.gentoo.org>; Sat,  1 Nov 2014 18:00:45 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id C3B7AE0FF8;
	Sat,  1 Nov 2014 18:00:44 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 3B7F6E0FF8
	for <gentoo-commits@lists.gentoo.org>; Sat,  1 Nov 2014 18:00:44 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 0B44E33BE3A
	for <gentoo-commits@lists.gentoo.org>; Sat,  1 Nov 2014 18:00:43 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id AC0F19394
	for <gentoo-commits@lists.gentoo.org>; Sat,  1 Nov 2014 18:00:41 +0000 (UTC)
From: "Sven Vermeulen" <swift@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, "Sven Vermeulen" <swift@gentoo.org>
Message-ID: <1414862851.c5a37fc66eb2f9b222c4912ffcf822b3f9046bad.swift@gentoo>
Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: gentoo/
X-VCS-Repository: proj/hardened-refpolicy
X-VCS-Files: gentoo/release-prepare.sh
X-VCS-Directories: gentoo/
X-VCS-Committer: swift
X-VCS-Committer-Name: Sven Vermeulen
X-VCS-Revision: c5a37fc66eb2f9b222c4912ffcf822b3f9046bad
X-VCS-Branch: master
Date: Sat,  1 Nov 2014 18:00:41 +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-Archives-Salt: 663fa61f-397c-4408-b5b3-292a35400d56
X-Archives-Hash: 9729250330a2c62ecde362920ea9832b

commit:     c5a37fc66eb2f9b222c4912ffcf822b3f9046bad
Author:     Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
AuthorDate: Sat Nov  1 17:27:31 2014 +0000
Commit:     Sven Vermeulen <swift <AT> gentoo <DOT> org>
CommitDate: Sat Nov  1 17:27:31 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=c5a37fc6

Adding DISTDIR support

---
 gentoo/release-prepare.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gentoo/release-prepare.sh b/gentoo/release-prepare.sh
index 1e0ce34..073ff58 100644
--- a/gentoo/release-prepare.sh
+++ b/gentoo/release-prepare.sh
@@ -66,8 +66,9 @@ buildpatch() {
   tar cvjf patchbundle-selinux-base-policy-${NEWVERSION}.tar.bz2 *.patch > /dev/null 2>&1 || die "Failed to create patchbundle";
   printf "done\n";
 
-  printf "Copying patch bundle into /usr/portage/distfiles and dev.g.o... ";
-  cp patchbundle-selinux-base-policy-${NEWVERSION}.tar.bz2 /usr/portage/distfiles || die "Failed to copy patchbundle to /usr/portage/distfiles";
+  . /etc/portage/make.conf;
+  printf "Copying patch bundle into ${DISTDIR} location and dev.g.o... ";
+  cp patchbundle-selinux-base-policy-${NEWVERSION}.tar.bz2 ${DISTDIR} || die "Failed to copy patchbundle to ${DISTDIR}";
   scp patchbundle-selinux-base-policy-${NEWVERSION}.tar.bz2 ${REMOTELOCATION} > /dev/null 2>&1 || die "Failed to scopy patchbundle to ${REMOTELOCATION}";
   printf "done\n";
 }