[wellwell-devel] [SCM] Interchange wellwell catalog branch, master, updated. 1ce7e4808076608f39172d0a20a945d197d65d5e
Stefan Hornburg
racke at rt.icdevgroup.org
Wed Jul 1 14:01:08 UTC 2009
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Interchange wellwell catalog".
The branch, master has been updated
via 1ce7e4808076608f39172d0a20a945d197d65d5e (commit)
from d4de66d981104fc264f4bc4b7ee37cc748d9b786 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 1ce7e4808076608f39172d0a20a945d197d65d5e
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date: Wed Jul 1 16:00:48 2009 +0200
add database call to update images in the database
-----------------------------------------------------------------------
Summary of changes and diff:
code/image_update.tag | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/code/image_update.tag b/code/image_update.tag
index 015bd70..a95c91a 100644
--- a/code/image_update.tag
+++ b/code/image_update.tag
@@ -64,9 +64,14 @@ sub {
format => $inforef->{type});
if ($imgcode) {
- } else {
-
+ # existing image has been updated
+ $imgcode = $Db{images}->set_slice([{dml => 'update'}, $imgcode], \%image);
+ unless ($imgcode) {
+ Log("Failed to update database record for %s", $filename);
+ return;
+ }
+ } else {
$imgcode = $Db{images}->set_slice([{dml => 'insert'}], \%image);
unless ($imgcode) {
hooks/post-receive
--
Interchange wellwell catalog
More information about the wellwell-devel
mailing list