Subversion Repositories programming

Rev

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

Rev 152 Rev 153
Line 52... Line 52...
52
#
52
#
53
# - 2005-11-05
53
# - 2005-11-05
54
# - Added an output system to rarslave. This makes a nice status report
54
# - Added an output system to rarslave. This makes a nice status report
55
#   possible at the end of the program run.
55
#   possible at the end of the program run.
56
#
56
#
-
 
57
# - 2005-11-06
-
 
58
# - Fixed the rar command so that it can extract files whose names begin
-
 
59
#   with a hyphen.
-
 
60
#
57
 
61
 
58
################################################################################
62
################################################################################
59
# REQUIREMENTS:
63
# REQUIREMENTS:
60
#
64
#
61
# This code requires the programs cfv, par2repair, lxsplit, and rar to be able
65
# This code requires the programs cfv, par2repair, lxsplit, and rar to be able
Line 539... Line 543...
539
 
543
 
540
        extract_file = self.__get_extract_file()
544
        extract_file = self.__get_extract_file()
541
 
545
 
542
        if extract_file != None:
546
        if extract_file != None:
543
            if config.get_value('options', 'extract_with_full_path'):
547
            if config.get_value('options', 'extract_with_full_path'):
544
                retval = os.system('rar x -o+ "%s"' % (extract_file, ))
548
                retval = os.system('rar x -o+ -- "%s"' % (extract_file, ))
545
            else:
549
            else:
546
                retval = os.system('rar e -o+ "%s"' % (extract_file, ))
550
                retval = os.system('rar e -o+ -- "%s"' % (extract_file, ))
547
 
551
 
548
            if retval != 0:
552
            if retval != 0:
549
                output.add_file(2, self.parfile)
553
                output.add_file(2, self.parfile)
550
                self.extracted = False
554
                self.extracted = False
551
                return self.extracted
555
                return self.extracted