Browse Source

For Unix systems, expand wildcards for the par2 tool to prevent problems with some builds of par2cmdline.

pull/111/head
shypike 12 years ago
parent
commit
7b5fcbe0af
  1. 6
      sabnzbd/newsunpack.py

6
sabnzbd/newsunpack.py

@ -969,7 +969,11 @@ def PAR_Verify(parfile, parfile_nzf, nzo, setname, joinables, classic=False, sin
if single or len(globber(wildcard, None)) < 2:
# Support bizarre naming conventions
wildcard = os.path.join(os.path.split(parfile)[0], '*')
command.append(wildcard)
if sabnzbd.WIN32 or sabnzbd.DARWIN:
command.append(wildcard)
else:
flist = [item for item in globber(wildcard, None) if os.path.isfile(item)]
command.extend(flist)
stup, need_shell, command, creationflags = build_command(command)
logging.debug('Starting par2: %s', command)

Loading…
Cancel
Save