public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Brian Dolbec" <dolsen@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gentoo-keys:master commit in: gkeys-ldap/bin/
Date: Sat,  7 Jul 2018 05:23:51 +0000 (UTC)	[thread overview]
Message-ID: <1530940934.3fb36c4ca353adffd39f40cda2e16969e099c3c1.dolsen@gentoo> (raw)

commit:     3fb36c4ca353adffd39f40cda2e16969e099c3c1
Author:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Wed Jul  4 15:11:06 2018 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Sat Jul  7 05:22:14 2018 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-keys.git/commit/?id=3fb36c4c

gkeys-ldap updateseeds.sh: Add a force override option

Signed-off-by: Brian Dolbec <dolsen <AT> gentoo.org>

 gkeys-ldap/bin/update-seeds.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gkeys-ldap/bin/update-seeds.sh b/gkeys-ldap/bin/update-seeds.sh
index d241cda..a2e0f87 100755
--- a/gkeys-ldap/bin/update-seeds.sh
+++ b/gkeys-ldap/bin/update-seeds.sh
@@ -1,6 +1,9 @@
 #!/bin/sh
 # $Id: update-seeds.sh,v 0.2.1 2014/10/12 dolsen Exp $
 
+FORCE=${1}
+HAS_UPDATES=false
+
 # configuration to run from a checkout with a custom config
 cwd=$(pwd)
 source ${cwd}/update-seeds.conf
@@ -46,6 +49,9 @@ gkeys-ldap update-seeds -C gentoo-devs || die "Seed file generation failed... ab
 
 echo " *** Checking if seed files are up-to-date"
 if ! diff -q ${GKEYS_DIR}/${GKEYS_SEEDS} ${GKEY_SEEDS_DIR}/${GKEY_SEEDS} > /dev/null ;then
+    HAS_UPDATES=true
+fi
+if [[ "${FORCE}" == "force" || ${HAS_UPDATES} ]] ; then
     echo " *** Spotted differences"
     echo " *** Updating old seeds with a new one"
     # copy seeds to gkey-seeds


             reply	other threads:[~2018-07-07  5:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-07  5:23 Brian Dolbec [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-08-16  3:46 [gentoo-commits] proj/gentoo-keys:master commit in: gkeys-ldap/bin/ Brian Dolbec
2018-08-15  1:05 Brian Dolbec
2018-07-07 14:05 Brian Dolbec
2018-07-07  5:23 Brian Dolbec
2018-07-07  5:23 Brian Dolbec
2016-12-24  9:13 [gentoo-commits] proj/gentoo-keys:gsoc-2016 " Brian Dolbec
2016-12-23 19:39 ` [gentoo-commits] proj/gentoo-keys:master " Brian Dolbec
2016-12-23 19:46 Brian Dolbec
2015-01-05 23:12 Brian Dolbec
2015-01-05 23:12 Brian Dolbec

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1530940934.3fb36c4ca353adffd39f40cda2e16969e099c3c1.dolsen@gentoo \
    --to=dolsen@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox