removed milestone from packed module

This commit is contained in:
Norbert Thiebaud 2010-12-20 09:30:15 -06:00
parent 614f3548d8
commit 4799103c4d

View file

@ -36,13 +36,13 @@ def stripped_paths_to_pack(loglines):
return (path.partition('/')[2] for path in paths_to_pack(loglines))
def main(args):
"""creates/overwrites a file at OUTDIR/zip/MILESTONE/MODULE.zip containing the contents of the gb_deliver.log."""
if len(args) != 4:
print('usage: packmodule OUTDIR MODULE MILESTONE')
"""creates/overwrites a file at OUTDIR/zip/MODULE.zip containing the contents of the gb_deliver.log."""
if len(args) != 3:
print('usage: packmodule OUTDIR MODULE')
sys.exit(2)
(executable, outdir, module, milestone) = args
(executable, outdir, module) = args
os.chdir(outdir)
zipdir = 'zip.'+milestone
zipdir = 'zip'
try:
os.makedirs(zipdir)
except OSError: