Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
KazukiPrzyborowski authored Mar 13, 2018
1 parent db9f60a commit 232ee6a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions catfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
argparser.add_argument("-l", "-t", "--list", action="store_true", help="list files only");
argparser.add_argument("-r", "--repack", action="store_true", help="reconcatenate files only fixing checksum errors");
argparser.add_argument("-o", "--output", default=None, help="extract concatenate files to or concatenate output name");
argparser.add_argument("-compress", "--compress", default="auto", help="extract concatenate files to or concatenate output name");
argparser.add_argument("-compression", "--compression", default="auto", help="concatenate files with compression");
getargs = argparser.parse_args();

should_extract = False;
Expand Down Expand Up @@ -112,11 +112,11 @@
if(getargs.verbose):
logging.basicConfig(format="%(message)s", stream=sys.stdout, level=logging.DEBUG);
if(should_create and not should_extract and not should_list and not should_repack and not should_convert):
pycatfile.PackCatFile(getargs.input, getargs.output, getargs.compress, False, getargs.checksum, getargs.verbose, False);
pycatfile.PackCatFile(getargs.input, getargs.output, getargs.compression, False, getargs.checksum, getargs.verbose, False);
if(should_create and not should_extract and not should_list and not should_repack and should_convert):
pycatfile.PackCatFileFromTarFile(getargs.input, getargs.output, getargs.compress, getargs.checksum, getargs.verbose, False);
pycatfile.PackCatFileFromTarFile(getargs.input, getargs.output, getargs.compression, getargs.checksum, getargs.verbose, False);
if(should_create and not should_extract and not should_list and should_repack and not should_convert):
pycatfile.RePackCatFile(getargs.input, getargs.output, 0, 0, getargs.compress, getargs.checksum, False, getargs.verbose, False);
pycatfile.RePackCatFile(getargs.input, getargs.output, 0, 0, getargs.compression, getargs.checksum, False, getargs.verbose, False);
if(not should_create and should_extract and not should_list):
pycatfile.UnPackCatFile(getargs.input, getargs.output, False, getargs.verbose, False);
if(not should_create and not should_extract and should_list):
Expand Down

0 comments on commit 232ee6a

Please sign in to comment.