summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-01-19 17:41:50 +0100
committerErich Eckner <git@eckner.net>2019-01-19 17:41:50 +0100
commita8eb18abe0ead861f5e362bec6716ecfb635118f (patch)
treed9e051fe070aa5def820f535ff927bf4a1d9adc3 /bin
parent7bb3c79c9c5ae4775793bb85e6540802ab400b1e (diff)
downloadbuilder-a8eb18abe0ead861f5e362bec6716ecfb635118f.tar.xz
bin/db-update: ADDDATE(x,-y) -> SUBDATE(x,y)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/db-update4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/db-update b/bin/db-update
index cd8e8e9..a8abc9a 100755
--- a/bin/db-update
+++ b/bin/db-update
@@ -144,9 +144,9 @@ if ! ${no_action}; then
printf ' SET `binary_packages`.`is_tested`=1'
printf ' WHERE NOT `binary_packages`.`has_issues`'
printf ' AND NOT `binary_packages`.`is_tested`'
- printf ' AND `binary_packages_in_repositories`.`first_last_moved`<ADDDATE(NOW(),from_base64("%s"))' \
+ printf ' AND `binary_packages_in_repositories`.`first_last_moved`<SUBDATE(NOW(),from_base64("%s"))' \
"$(
- printf -- '-%s' "${max_testing_duration}" | \
+ printf -- '%s' "${max_testing_duration}" | \
base64 -w0
)"
} | \