vcs-mirror r11 - trunk



Author: johncarr
Date: Mon Oct 27 14:48:04 2008
New Revision: 11
URL: http://svn.gnome.org/viewvc/vcs-mirror?rev=11&view=rev

Log:
Whitespace fixes

Modified:
   trunk/mirror-update-all.py
   trunk/mirror.py

Modified: trunk/mirror-update-all.py
==============================================================================
--- trunk/mirror-update-all.py	(original)
+++ trunk/mirror-update-all.py	Mon Oct 27 14:48:04 2008
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-# This script is a cronjob to automatically remove things from the mirror 
+# This script is a cronjob to automatically remove things from the mirror
 # when they are no longer on svn.gnome.org
 
 import sys, os

Modified: trunk/mirror.py
==============================================================================
--- trunk/mirror.py	(original)
+++ trunk/mirror.py	Mon Oct 27 14:48:04 2008
@@ -9,7 +9,7 @@
         self.new_dir = os.path.join(self.maildir, "new")
         self.cur_dir = os.path.join(self.maildir, "cur")
 
-	self.queue = []
+        self.queue = []
 
         self.probe()
 
@@ -45,16 +45,16 @@
 
     def empty_queue(self):
         for module in self.queue:
-	    for vcs in ("svn", "bzr", "git", "hg"):
-	        self.update(vcs, module)
-	self.queue = []
+            for vcs in ("svn", "bzr", "git", "hg"):
+                self.update(vcs, module)
+        self.queue = []
 
     def update(self, vcs, module):
         moddir = os.path.join("/srv", vcs, module)
-	if os.path.isdir(moddir):
-	    self.run("%s-update.sh" % vcs, module)
-	else:
-	    self.run("%s-create.sh" % vcs, module)
+        if os.path.isdir(moddir):
+            self.run("%s-update.sh" % vcs, module)
+        else:
+            self.run("%s-create.sh" % vcs, module)
 
     def run(self, command, module):
         os.system("%s %s" % (os.path.join(os.path.expanduser("~"), command), module))



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]