Subversion Repositories freemyipod

Rev

Rev 599 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 599 Rev 602
Line 812... Line 812...
812
        """
812
        """
813
            Target-specific function: ipodclassic
813
            Target-specific function: ipodclassic
814
            Uploads the bad block table <filename> to memory at <tempaddr>
814
            Uploads the bad block table <filename> to memory at <tempaddr>
815
            (or an allocated block if not given) and writes it to the hard disk
815
            (or an allocated block if not given) and writes it to the hard disk
816
        """
816
        """
817
	if tempaddr != None:
-
 
818
            tempaddr = to_int(tempaddr)
817
        tempaddr = to_int(tempaddr)
819
        try:
818
        try:
820
            f = open(filename, 'rb')
819
            f = open(filename, 'rb')
821
        except IOError:
820
        except IOError:
822
            raise ArgumentError("File not readable. Does it exist?")
821
            raise ArgumentError("File not readable. Does it exist?")
823
        self.logger.info("Writing bad block table to disk...")
822
        self.logger.info("Writing bad block table to disk...")