Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/db-update
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/db-update
parent7bb3c79c9c5ae4775793bb85e6540802ab400b1e (diff)
bin/db-update: ADDDATE(x,-y) -> SUBDATE(x,y)
Diffstat (limited to 'bin/db-update')
-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
)"
} | \