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 _at_@ -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): _at_@ -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.orgReceived on Wed Feb 10 2010 - 03:01:16 GMT
This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT