def METHOD_NAME(args):
    print("Packing {} into {}".format(args.basename, args.output))
    with tarfile.open(name=args.output, mode='w:') as tfile:
        dbg_print(args, "Adding RRv2 magic file")
        add_rrmagic(tfile)
        dbg_print(args, "Adding replay files")
        add_files(tfile, args)
        dbg_print(args, "Adding metadata")
        add_metadata(tfile, args)
    dbg_print(args, "Adding file hashes")
    add_hashes(args)