summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_common.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-03-20 22:22:21 +0100
committerHolger Levsen <holger@layer-acht.org>2015-03-20 22:22:21 +0100
commit78527f4218e1adcf6751ed5894d3dad0c18c7b1f (patch)
tree88876a0308c34ffbed584660216700b3b97cd9e0 /bin/reproducible_common.sh
parentff807ad858d6dd89ab8b99d7111ba9d968be19b7 (diff)
downloadjenkins.debian.net-78527f4218e1adcf6751ed5894d3dad0c18c7b1f.tar.xz
reproducible: later manual scheduling is earlier in the queue now
Diffstat (limited to 'bin/reproducible_common.sh')
-rwxr-xr-xbin/reproducible_common.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh
index 7f318e14..0737c729 100755
--- a/bin/reproducible_common.sh
+++ b/bin/reproducible_common.sh
@@ -77,7 +77,11 @@ META_PKGSET[14]="maint_pkg-perl-maintainers"
schedule_packages() {
# these packages are manually scheduled, so should have high priority,
# so schedule them in the past, so they are picked earlier :)
- DATE="2014-10-01 00:23"
+ # the current date is subtracted twice, so that later manual scheduling comes first
+ DAYS=$(echo "$(date +'%j')*2"|bc)
+ HOURS=$(echo "$(date +'%H')*2"|bc)
+ MINS=$(echo "$(date +'%M')*2"|bc)
+ DATE=$(date +'%Y-%m-%d %H:%M' -d "$DAYS day ago - $HOURS hours - $MINS minutes")
TMPFILE=$(mktemp)
ARTIFACTS=$1
shift