[mirrorbrain-commits] [opensuse-svn] r6358 - trunk/tools/download-redirector-v2/scanner

From: Novell Forge SVN <noreply_at_novell.com>
Date: Tue, 3 Feb 2009 15:17:49 -0700 (MST)
Author: poeml
Date: 2009-02-03 15:17:45 -0700 (Tue, 03 Feb 2009)
New Revision: 6358

Modified:
   trunk/tools/download-redirector-v2/scanner/scanner.pl
Log:
scanner: 
 - fix enabling servers after scan. Make it work with both PostgreSQL boolean
   type as well asn MySQL's tinyint.


Modified: trunk/tools/download-redirector-v2/scanner/scanner.pl
===================================================================
--- trunk/tools/download-redirector-v2/scanner/scanner.pl	2009-02-03 20:08:51 UTC (rev 6357)
+++ trunk/tools/download-redirector-v2/scanner/scanner.pl	2009-02-03 22:17:45 UTC (rev 6358)
@@ -346,7 +346,7 @@
   }
 
   if($enable_after_scan && $file_count > 1 && !$row->{enabled}) {
-    $sql = "UPDATE server SET enabled = 1 WHERE id = $row->{id};";
+    $sql = "UPDATE server SET enabled = '1' WHERE id = $row->{id};";
     print "$sql\n" if $sqlverbose;
     my $sth = $dbh->prepare( $sql );
     $sth->execute() or die $sth->err;

_______________________________________________
Opensuse-svn mailing list
Opensuse-svn_at_forge.novell.com
http://forge.novell.com/mailman/listinfo/opensuse-svn


_______________________________________________
mirrorbrain-commits mailing list

Note: To remove yourself from this list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on 2009-02-03Z22:18:23

This archive was generated by hypermail 2.2.0 : 2009-07-10Z19:18:10 GMT