|
|
@ -213,23 +213,25 @@ def main (args): |
|
|
|
if could_have_base(x, pb): |
|
|
|
return p |
|
|
|
|
|
|
|
print ("pairing input files with pads", file=sys.stderr) |
|
|
|
for x in inputs: |
|
|
|
# pair input with a pad if possible |
|
|
|
p = get_best_pad(x) |
|
|
|
xbasename = os.path.basename(x) |
|
|
|
p = get_best_pad(xbasename) |
|
|
|
if p: |
|
|
|
if not has_version(p, x): |
|
|
|
# print ("Grouping file {0} with pad {1}".format(x, p['padid']), file=sys.stderr) |
|
|
|
print ("Grouping file {0} with pad {1}".format(x, p['padid']), file=sys.stderr) |
|
|
|
p['versions'].append(wrappath(x)) |
|
|
|
# else: |
|
|
|
# print ("Skipping existing version {0} ({1})...".format(x, p['padid']), file=sys.stderr) |
|
|
|
else: |
|
|
|
print ("Skipping existing version {0} ({1})...".format(x, p['padid']), file=sys.stderr) |
|
|
|
removelist.append(x) |
|
|
|
# Removed Matches files |
|
|
|
for x in removelist: |
|
|
|
inputs.remove(x) |
|
|
|
# print ("Remaining files:", file=sys.stderr) |
|
|
|
# for x in inputs: |
|
|
|
# print (x, file=sys.stderr) |
|
|
|
# print (file=sys.stderr) |
|
|
|
print ("Remaining files:", file=sys.stderr) |
|
|
|
for x in inputs: |
|
|
|
print (x, file=sys.stderr) |
|
|
|
print (file=sys.stderr) |
|
|
|
# Add "fake" pads for remaining files |
|
|
|
for x in inputs: |
|
|
|
args.pads.append(metaforpaths([x])) |
|
|
|