[mirrorbrain-commits] r7952 - /trunk/tools/metalink-hasher.py

From: <poeml_at_mirrorbrain.org>
Date: Wed, 10 Feb 2010 03:01:15 -0000
Author: poeml
Date: Wed Feb 10 04:01:14 2010
New Revision: 7952

URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=7952&view=rev
Log:
metalink-hasher:
- Migration support for for old filename scheme in the metalink hash cache
  ("*.inode_$INODE", added around r7793) has been removed.

Modified:
    trunk/tools/metalink-hasher.py

Modified: trunk/tools/metalink-hasher.py
URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/tools/metalink-hasher.py?rev=7952&r1=7951&r2=7952&view=diff
==============================================================================
--- trunk/tools/metalink-hasher.py (original)
+++ trunk/tools/metalink-hasher.py Wed Feb 10 04:01:14 2010
@@ -81,10 +81,6 @@
         self.dst_basename = '%s.size_%s' % (self.basename, self.size)
         self.dst = os.path.join(self.dst_dir, self.dst_basename)
 
-        # migration 2.10.0 -> 2.10.1
-        self.dst_old_basename = '%s.inode_%s' % (self.basename, self.inode)
-        self.dst_old = os.path.join(self.dst_dir, self.dst_old_basename)
-
     def islink(self):
         return stat.S_ISLNK(self.mode)
     def isreg(self):
@@ -103,14 +99,6 @@
         if int(dst_mtime) == int(self.mtime) and dst_size != 0:
             if verbose:
                 print 'Up to date: %r' % self.dst
-            return 
-
-        if os.path.exists(self.dst_old):
-            # upgrade mode 2.10.0 -> 2.10.1
-            print 'migrating %s -> %s' % (self.dst_old, self.dst)
-            if not dry_run: 
-                os.rename(self.dst_old, self.dst)
-                os.utime(self.dst, (self.atime, self.mtime))
             return 
 
         cmd = [ 'metalink',




_______________________________________________
mirrorbrain-commits mailing list
Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/

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 Wed Feb 10 2010 - 03:01:16 GMT

This archive was generated by hypermail 2.2.0 : Wed Feb 10 2010 - 03:17:06 GMT