summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/db-update4
-rwxr-xr-xbin/return-assignment3
2 files changed, 5 insertions, 2 deletions
diff --git a/bin/db-update b/bin/db-update
index 54d2f87..98bc884 100755
--- a/bin/db-update
+++ b/bin/db-update
@@ -392,7 +392,9 @@ for source_stability in 'testing' 'staging'; do
printf ' JOIN `replaced_binary_packages` ON `binary_packages`.`id`=`replaced_binary_packages`.`id`;\n'
printf 'UPDATE `binary_packages`'
printf ' JOIN `moved_binary_packages` ON `binary_packages`.`id`=`moved_binary_packages`.`id`'
- printf ' SET `binary_packages`.`repository`=`moved_binary_packages`.`new_repository`;\n'
+ printf ' SET `binary_packages`.`repository`=`moved_binary_packages`.`new_repository`,'
+ printf ' `binary_packages`.`last_moved`=NOW()'
+ printf ' WHERE `binary_packages`.`repository`!=`moved_binary_packages`.`new_repository`;\n'
} | \
mysql_run_query
done
diff --git a/bin/return-assignment b/bin/return-assignment
index 9e64ff0..1b7a872 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -536,7 +536,8 @@ trigger_mirror_refreshs
base64 -w0
)"
printf ' `binary_packages`.`has_issues`=0,'
- printf ' `binary_packages`.`is_tested`=0'
+ printf ' `binary_packages`.`is_tested`=0,'
+ printf ' `binary_packages`.`last_moved`=NOW()'
printf ' WHERE `build_slaves`.`name`=from_base64("%s")' \
"$(
printf '%s' "${slave}" | \