[mirrorbrain-commits] [opensuse-svn] r6329 - trunk/tools/download-redirector-v2/mirrordoctor

From: Novell Forge SVN <noreply_at_novell.com>
Date: Tue, 3 Feb 2009 02:30:19 -0700 (MST)
Author: poeml
Date: 2009-02-03 02:30:16 -0700 (Tue, 03 Feb 2009)
New Revision: 6329

Modified:
   trunk/tools/download-redirector-v2/mirrordoctor/mirrordoctor.py
Log:
mirrordoctor: set (empty) defaults for empty database columns, when creating a
new mirror. This makes us more independant on the database schema.


Modified: trunk/tools/download-redirector-v2/mirrordoctor/mirrordoctor.py
===================================================================
--- trunk/tools/download-redirector-v2/mirrordoctor/mirrordoctor.py	2009-02-03 09:03:55 UTC (rev 6328)
+++ trunk/tools/download-redirector-v2/mirrordoctor/mirrordoctor.py	2009-02-03 09:30:16 UTC (rev 6329)
_at_@ -149,19 +149,22 @@
         s = self.conn.Server(identifier   = identifier,
                              baseurl      = opts.http,
                              baseurlFtp   = opts.ftp or '',
-                             baseurlRsync = opts.rsync,
+                             baseurlRsync = opts.rsync or '',
                              region       = opts.region,
                              country      = opts.country,
                              score        = opts.score,
                              enabled      = 0,
                              statusBaseurl = 0,
-                             admin        = opts.admin,
-                             adminEmail   = opts.admin_email,
+                             admin        = opts.admin or '',
+                             adminEmail   = opts.admin_email or '',
                              operatorName = '',
                              operatorUrl  = '',
                              otherCountries = '',
                              publicNotes  = '',
-                             comment      = opts.comment)
+                             comment      = opts.comment or '',
+                             scanFpm      = 0,
+                             countryOnly  = 0,
+                             regionOnly   = 0)
         if self.options.debug:
             print s
 

_______________________________________________
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 Tue Feb 03 2009 - 09:30:56 GMT

This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT