fixed syntax error

This commit is contained in:
Joel Kåberg 2013-03-25 09:05:04 +01:00
parent 48050f39dd
commit bed71482d0

View file

@ -117,7 +117,7 @@ def extract(filePath, outputDestination):
os.chdir(outputDestination) # Not all unpack commands accept full paths, so just extract into this directory os.chdir(outputDestination) # Not all unpack commands accept full paths, so just extract into this directory
try: # now works same for nt and *nix try: # now works same for nt and *nix
cmd.append(filePath) # add filePath to final cmd arg. cmd.append(filePath) # add filePath to final cmd arg.
p = Popen(cmd)) # should extract files fine. p = Popen(cmd) # should extract files fine.
res = p.wait() res = p.wait()
if res >= 0: # for windows chp returns process id if successful or -1*Error code. Linus returns 0 for successful. if res >= 0: # for windows chp returns process id if successful or -1*Error code. Linus returns 0 for successful.
Logger.info("EXTRACTOR: Extraction was successful for %s to %s", filePath, outputDestination) Logger.info("EXTRACTOR: Extraction was successful for %s to %s", filePath, outputDestination)