From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 C2EA9138334 for ; Tue, 24 Dec 2019 10:00:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0E2A2E0B11; Tue, 24 Dec 2019 10:00: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 BCE76E0AF6 for ; Tue, 24 Dec 2019 10:00:34 +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 7105434DB1F for ; Tue, 24 Dec 2019 10:00:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1AC8B36 for ; Tue, 24 Dec 2019 10:00:31 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1577181507.4b2e44f2d4b5e2215259553f4f740777078fd557.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: gentoo/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: gentoo/release-userspace.sh X-VCS-Directories: gentoo/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 4b2e44f2d4b5e2215259553f4f740777078fd557 X-VCS-Branch: master Date: Tue, 24 Dec 2019 10:00:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c5c1e293-5c7f-4718-a196-44d00d20054c X-Archives-Hash: 14feb8a30c1d8632d801d9b2a306394b commit: 4b2e44f2d4b5e2215259553f4f740777078fd557 Author: Jason Zaman gentoo org> AuthorDate: Sun Dec 15 11:07:29 2019 +0000 Commit: Jason Zaman gentoo org> CommitDate: Tue Dec 24 09:58:27 2019 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=4b2e44f2 release-userspace: skip commit if no changes Signed-off-by: Jason Zaman gentoo.org> gentoo/release-userspace.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gentoo/release-userspace.sh b/gentoo/release-userspace.sh index 4eafdf37..f9473260 100644 --- a/gentoo/release-userspace.sh +++ b/gentoo/release-userspace.sh @@ -74,6 +74,9 @@ setLiveReleaseDate() { sed -i "/^MY_RELEASEDATE=/s/.*/MY_RELEASEDATE=\"${RELEASEDATE}\"/" "${PN}-9999.ebuild" sed -i "/SRC_URI/s@raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases@github.com/SELinuxProject/selinux/releases/download@" "${PN}-9999.ebuild" + # no changes, skip + [[ -z "$(git status --porcelain -- .)" ]] && continue + # commit changes git add "${PN}-9999.ebuild" git --no-pager diff --cached